/PHP-7.1/ext/imap/tests/ |
H A D | imap_append_basic.phpt | 18 echo "Create a new mailbox for test\n"; 21 exit("TEST FAILED: Unable to create test mailbox\n"); 27 , "From: webmaster@something.com\r\n" 28 . "To: info@something.com\r\n" 29 . "Subject: Test message\r\n" 30 . "\r\n" 36 . "To: info@something.com\r\n" 37 . "Subject: Another test\r\n" 38 . "\r\n" 43 echo "Msg Count after append : ". $check->Nmsgs . "\n"; [all …]
|
/PHP-7.1/ext/spl/tests/ |
H A D | dllist_013.phpt | 10 echo "Exception: ".$e->getMessage()."\n"; 23 echo count($dll)."\n"; 25 echo $dll->pop()."\n"; 26 echo $dll->pop()."\n"; 27 echo $dll->pop()."\n"; 28 echo $dll->pop()."\n"; 29 echo $dll->pop()."\n"; 30 echo $dll->pop()."\n"; 31 echo $dll->pop()."\n";
|
/PHP-7.1/ext/pgsql/tests/ |
H A D | 02connection.phpt | 16 echo "pg_connection_status() error\n"; 20 echo "pg_connection_reset() error\n"; 24 echo "pg_connection_busy() error\n"; 29 echo "pg_transaction_status() error\n"; 34 echo "pg_host() error\n"; 38 echo "pg_dbname() error\n"; 42 echo "pg_port() error\n"; 46 echo "pg_tty() error\n"; 50 echo "pg_options() error\n";
|
H A D | 27large_object_oid.phpt | 7 if (version_compare("8.3", $v["client"]) > 0) die("skip - requires pg client >= 8.3\n"); 8 if (version_compare("8.3", $v["server"]) > 0) die("skip - requires pg server >= 8.3\n"); 17 echo "create LO from int\n"; 20 if (!$oid) echo ("pg_lo_create() error\n"); 21 if ($oid != 21000) echo ("pg_lo_create() wrong id\n"); 25 echo "create LO from string\n"; 28 if (!$oid) echo ("pg_lo_create() error\n"); 29 if ($oid != 21001) echo ("pg_lo_create() wrong id\n"); 33 echo "create LO using default connection\n"; 36 if (!$oid) echo ("pg_lo_create() error\n"); [all …]
|
/PHP-7.1/ext/phar/tests/ |
H A D | phar_oo_008.phpt | 19 echo "===1===\n"; 22 echo "$k=>$v\n"; 27 echo "===2===\n"; 30 echo "$k=>$v\n"; 44 echo "===3===\n"; 50 echo "===4===\n"; 58 echo "===5===\n"; 61 echo "$k=>" . join('|',$d) . "\n"; 68 echo __METHOD__ . "\n"; 76 echo "===6===\n"; [all …]
|
/PHP-7.1/ext/mysqli/tests/ |
H A D | mysqli_affected_rows.phpt | 17 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 20 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 23 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 30 printf("[005] Expecting int/0, got %s/%s. [%d] %s\n", 34 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 37 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 43 printf("[010] Expecting int/1, got %s/%s\n", gettype($tmp), $tmp); 48 printf("[011] Expecting int/-1, got %s/%s\n", gettype($tmp), $tmp); 54 printf("[013] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); 60 printf("[015] Expecting int/2, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
H A D | mysqli_stmt_execute_stored_proc.phpt | 21 printf("[009] [%d] %s.\n", mysqli_errno($link), mysqli_error($link)); 47 printf("[017] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 50 printf("[018] Results seem wrong, got %s, [%d] %s\n", 65 printf("[019] [%d] %s.\n", mysqli_errno($link), mysqli_error($link)); 88 printf("[026] Results seem wrong, got %s, [%d] %s\n", 102 printf("[028] [%d] %s.\n", mysqli_errno($link), mysqli_error($link)); 125 printf("[034] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt)); 128 printf("[035] Results seem wrong, got %s, [%d] %s\n", 140 printf("[037] [%d] %s.\n", mysqli_errno($link), mysqli_error($link)); 170 printf("[045] Results seem wrong, got %s, [%d] %s\n", [all …]
|
/PHP-7.1/ext/hash/tests/ |
H A D | md2.phpt | 7 echo hash('md2', '') . "\n"; 8 echo hash('md2', 'a') . "\n"; 9 echo hash('md2', 'abc') . "\n"; 10 echo hash('md2', 'message digest') . "\n"; 11 echo hash('md2', 'abcdefghijklmnopqrstuvwxyz') . "\n"; 12 echo hash('md2', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n"; 13 …('md2', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n";
|
H A D | md4.phpt | 8 echo hash('md4', '') . "\n"; 9 echo hash('md4', 'a') . "\n"; 10 echo hash('md4', 'abc') . "\n"; 11 echo hash('md4', 'message digest') . "\n"; 12 echo hash('md4', 'abcdefghijklmnopqrstuvwxyz') . "\n"; 13 echo hash('md4', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n"; 14 …('md4', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n";
|
/PHP-7.1/ext/gmp/tests/ |
H A D | cast.phpt | 8 $n = gmp_init(42); 9 echo $n, "\n"; 10 var_dump((string) $n); 11 var_dump((int) $n); 12 var_dump((float) $n); 13 var_dump((bool) $n);
|
/PHP-7.1/ext/simplexml/tests/ |
H A D | 011.phpt | 21 echo "===BAR===\n"; 23 echo "\n"; 25 echo "===BAZ===\n"; 27 echo "\n"; 29 echo "===BAZ0===\n"; 31 echo "\n"; 33 echo "===BAZ1===\n"; 35 echo "\n";
|
/PHP-7.1/tests/classes/ |
H A D | inheritance.phpt | 12 echo "This is class foo\n"; 13 echo "a = ".$this->a."\n"; 14 echo "b = ".$this->b."\n"; 24 echo "This is class bar\n"; 25 echo "a = ".$this->a."\n"; 26 echo "b = ".$this->b."\n"; 27 echo "c = ".$this->c."\n"; 36 echo $foo1->mul()."\n"; 38 echo "-----\n"; 45 echo $bar1->mul()."\n";
|
/PHP-7.1/ext/date/tests/ |
H A D | date_period-immutable.phpt | 13 echo get_class( $dt ), "\n"; 14 echo $dt->format( "l Y-m-d\n" ); 15 echo $dt->modify( "3 tuesday" )->format( "l Y-m-d\n" ); 16 echo $dt->format( "l Y-m-d\n\n" ); 21 echo get_class( $dt ), "\n"; 22 echo $dt->format( "l Y-m-d\n" ); 23 echo $dt->modify( "3 tuesday" )->format( "l Y-m-d\n" ); 24 echo $dt->format( "l Y-m-d\n\n" );
|
/PHP-7.1/ext/enchant/tests/ |
H A D | broker_free_dict.phpt | 8 if(!is_resource(enchant_broker_init())) {die("skip, resource dont load\n");} 9 …list_dicts(enchant_broker_init()))) {die("skip, dont has dictionary install in this machine! \n");} 17 echo("OK\n"); 21 echo("OK\n"); 28 echo("OK\n"); 31 echo("dict broker free has failed\n"); 35 echo("dict add to personal failed\n"); 39 echo("broker request dict failed\n"); 43 echo("broker is not a resource; failed;\n"); 45 echo "OK\n";
|
/PHP-7.1/ext/oci8/tests/ |
H A D | num.phpt | 21 echo "Test 1\n"; 27 echo "Test 2\n"; 44 echo "Test 3\n"; 54 echo "Test 4\n"; 67 echo "Test 5a\n"; 77 echo "Test 5b\n"; 88 echo "Test 5c\n"; 109 echo "Test 6\n"; 130 echo "Test 7\n"; 146 echo "Test 8a\n"; [all …]
|
/PHP-7.1/ext/standard/tests/array/ |
H A D | array_product_variation3.phpt | 11 echo "*** Testing array_product() : variations - negative numbers***\n"; 13 echo "\n-- Testing array_product() function with one negative number --\n"; 16 echo "\n-- Testing array_product() function with two negative numbers --\n"; 19 echo "\n-- Testing array_product() function with three negative numbers --\n"; 22 echo "\n-- Testing array_product() function with negative floats --\n"; 25 echo "\n-- Testing array_product() function with negative floats --\n";
|
/PHP-7.1/ext/standard/tests/strings/ |
H A D | md5raw.phpt | 5 echo bin2hex(md5("", TRUE))."\n"; 6 echo bin2hex(md5("a", TRUE))."\n"; 7 echo bin2hex(md5("abc", TRUE))."\n"; 8 echo bin2hex(md5("message digest", TRUE))."\n"; 9 echo bin2hex(md5("abcdefghijklmnopqrstuvwxyz", TRUE))."\n"; 10 echo bin2hex(md5("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", TRUE))."\n"; 11 …d5("12345678901234567890123456789012345678901234567890123456789012345678901234567890", TRUE))."\n";
|
H A D | ltrim.phpt | 10 echo "\n *** Output for Error Conditions ***\n"; 12 echo "\n *** Output for zero argument ***\n"; 15 echo "\n *** Output for more than valid number of arguments (Valid are 1 or 2 arguments) ***\n"; 24 echo "\n *** Using heredoc string ***\n"; 29 echo "\n *** Output for Normal Behaviour ***\n"; 35 …var_dump ( ltrim("\t\n\r\0\x0B ltrim test", "\t\n\r\0\x0B") ); /* with multiple escape sequences … 41 echo "\n *** Output for scalar argument) ***\n"; 44 echo "\n *** Output for NULL argument) ***\n"; 47 echo "\nDone\n";
|
/PHP-7.1/tests/lang/ |
H A D | passByReference_010.phpt | 11 echo "\n\n---> Pass constant assignment by reference:\n"; 15 echo "\n\n---> Pass variable assignment by reference:\n"; 21 echo "\n\n---> Pass reference assignment by reference:\n"; 27 echo "\n\n---> Pass concat assignment by reference:\n";
|
/PHP-7.1/ext/standard/tests/math/ |
H A D | cos_basic.phpt | 29 echo "Pass\n"; 32 echo "Fail\n"; 38 echo "Pass\n"; 41 echo "Fail\n"; 47 echo "Pass\n"; 50 echo "Fail\n"; 56 echo "Pass\n"; 59 echo "Fail\n"; 65 echo "Pass\n"; 68 echo "Fail\n"; [all …]
|
H A D | sin_basic.phpt | 29 echo "Pass\n"; 32 echo "Fail\n"; 38 echo "Pass\n"; 41 echo "Fail\n"; 47 echo "Pass\n"; 50 echo "Fail\n"; 56 echo "Pass\n"; 59 echo "Fail\n"; 65 echo "Pass\n"; 68 echo "Fail\n"; [all …]
|
/PHP-7.1/Zend/tests/ |
H A D | foreach_003.phpt | 6 private $n = 0; 21 function rewind() {$this->trap(__FUNCTION__); $this->n = 0;} 23 function key() {$this->trap(__FUNCTION__); return $this->n;} 24 function current() {$this->trap(__FUNCTION__); return $this->n;} 25 function next() {$this->trap(__FUNCTION__); $this->n++;} 32 foreach ($obj as $key => $val) echo "$val\n"; 34 echo $e->getMessage() . "\n"; 40 foreach (new IT(3, $trap) as $key => $val) echo "$val\n"; 42 echo $e->getMessage() . "\n"; 47 foreach ((object)new IT(2, $trap) as $key => $val) echo "$val\n"; [all …]
|
/PHP-7.1/ext/intl/tests/ |
H A D | calendar_before_after_error.phpt | 16 echo "error: $errno, $errstr\n"; 23 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 28 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 34 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 39 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 45 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 50 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 56 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n"; 61 echo "error: " . $ex->getCode() . ", " . $ex->getMessage() . "\n\n";
|
/PHP-7.1/ext/reflection/tests/ |
H A D | ReflectionMethod_constructor_basic.phpt | 8 echo "In " . __METHOD__ . "\n"; 12 echo "New-style constructor:\n"; 18 echo "\nInherited new-style constructor\n"; 24 echo "In " . __METHOD__ . "\n"; 27 echo "\nOld-style constructor:\n"; 39 echo "In " . __METHOD__ . "\n"; 42 echo "\nNot a constructor:\n"; 54 echo "In " . __METHOD__ . "\n"; 61 echo "\nOld-style constructor:\n"; 65 echo "\nRedefined constructor:\n"; [all …]
|
/PHP-7.1/ext/mbstring/libmbfl/filters/ |
H A D | mbfilter_qprint.c | 74 int s, n; in mbfl_filt_conv_qprintenc() local 115 n = (s >> 4) & 0xf; in mbfl_filt_conv_qprintenc() 116 if (n < 10) { in mbfl_filt_conv_qprintenc() 117 n += 48; /* '0' */ in mbfl_filt_conv_qprintenc() 119 n += 55; /* 'A' - 10 */ in mbfl_filt_conv_qprintenc() 122 n = s & 0xf; in mbfl_filt_conv_qprintenc() 123 if (n < 10) { in mbfl_filt_conv_qprintenc() 124 n += 48; in mbfl_filt_conv_qprintenc() 126 n += 55; in mbfl_filt_conv_qprintenc() 158 int n, m; in mbfl_filt_conv_qprintdec() local [all …]
|