/PHP-7.1/ext/standard/tests/array/ |
H A D | end_basic.phpt | 14 echo "*** Testing end() : basic functionality ***\n"; 18 echo "\n-- Initial Position: --\n"; 19 echo key($array) . " => " . current($array) . "\n"; 21 echo "\n-- Call to end() --\n"; 24 echo "\n-- Current Position: --\n"; 25 echo key($array) . " => " . current($array) . "\n"; 27 echo "\n-- Add a new element to array --\n";
|
/PHP-7.1/ext/date/tests/ |
H A D | bug17988.phpt | 7 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728"))."\n"; 8 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 GMT"))."\n"; 9 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728 EDT"))."\n"; 10 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-00"))."\n"; 11 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+00"))."\n"; 12 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-04"))."\n"; 13 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+04"))."\n"; 14 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-0300"))."\n"; 15 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728+0300"))."\n"; 16 echo gmdate('Y-m-d H:i:s', strtotime("2002-06-25 14:18:48.543728-0330"))."\n"; [all …]
|
/PHP-7.1/ext/standard/tests/math/ |
H A D | pow_basic2.phpt | 10 echo "\n-- The following all result in INF --\n"; 15 echo "\n\n-- The following all result in 0 --\n"; 21 echo "\n\n-- The following all result in -0 --\n"; 24 echo "\n\n-- The following all result in -INF --\n";
|
/PHP-7.1/ext/zip/tests/ |
H A D | oo_extract.phpt | 15 echo "open failed.\n"; 21 echo "failed. mkdir\n"; 25 echo "failed. mkdir foobar\n"; 29 echo "failed. extract foobar/baz\n"; 35 echo "failed. bar file\n"; 37 echo file_get_contents($dirname . '__oo_extract_tmp/bar') . "\n"; 41 echo "failed. foo file\n"; 43 echo file_get_contents($dirname . '__oo_extract_tmp/foo') . "\n"; 50 echo "failed. extract bar file\n"; 58 echo "failed. extract bar file\n"; [all …]
|
/PHP-7.1/tests/lang/ |
H A D | engine_assignExecutionOrder_001.phpt | 7 echo "in f()\n"; 12 echo "in g()\n"; 17 echo "\n\nOrder with local assignment:\n"; 21 echo "\n\nOrder with array assignment:\n"; 25 echo "\n\nOrder with object property assignment:\n"; 30 echo "\n\nOrder with nested object property assignment:\n"; 37 echo "\n\nOrder with dim_list property assignment:\n"; 48 echo "\n\nOrder with static property assignment:\n"; 52 echo "\n\nOrder with static array property assignment:\n"; 56 echo "\n\nOrder with indexed string assignment:\n"; [all …]
|
/PHP-7.1/ext/standard/tests/strings/ |
H A D | md5.phpt | 5 echo md5("")."\n"; 6 echo md5("a")."\n"; 7 echo md5("abc")."\n"; 8 echo md5("message digest")."\n"; 9 echo md5("abcdefghijklmnopqrstuvwxyz")."\n"; 10 echo md5("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789")."\n"; 11 echo md5("12345678901234567890123456789012345678901234567890123456789012345678901234567890")."\n";
|
H A D | explode_variation6.phpt | 11 echo "*** Testing explode() function: misc tests ***\n"; 15 echo "\n-- positive limit with null separator --\n"; 18 echo "\n-- negative limit (since PHP 5.1) with null separator --\n"; 21 echo "\n-- unknown string --\n"; 24 echo "\n-- limit = 0 --\n"; 27 echo "\n-- limit = -1 --\n"; 30 echo "\n-- large limit = -100 --\n";
|
H A D | printf_basic1.phpt | 10 echo "*** Testing printf() : basic functionality - using string format ***\n"; 21 echo "\n-- Calling printf() with no arguments --\n"; 23 echo "\n"; 26 echo "\n-- Calling printf() with one arguments --\n"; 28 echo "\n"; 31 echo "\n-- Calling printf() with two arguments --\n"; 33 echo "\n"; 37 echo "\n-- Calling printf() with string three arguments --\n"; 39 echo "\n";
|
H A D | printf_basic7.phpt | 16 echo "*** Testing printf() : basic functionality - using unsigned format ***\n"; 28 echo "\n-- Calling printf() with no arguments --\n"; 30 echo "\n"; 33 echo "\n-- Calling printf() with one arguments --\n"; 35 echo "\n"; 38 echo "\n-- Calling printf() with two arguments --\n"; 40 echo "\n"; 43 echo "\n-- Calling printf() with three arguments --\n"; 45 echo "\n";
|
H A D | printf_basic8.phpt | 16 echo "*** Testing printf() : basic functionality - using octal format ***\n"; 27 echo "\n-- Calling printf() with no arguments --\n"; 29 echo "\n"; 32 echo "\n-- Calling printf() with one arguments --\n"; 34 echo "\n"; 37 echo "\n-- Calling printf() with two arguments --\n"; 39 echo "\n"; 42 echo "\n-- Calling printf() with three arguments --\n"; 44 echo "\n";
|
/PHP-7.1/ext/mysqli/tests/ |
H A D | mysqli_real_escape_string.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); 25 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 28 printf("[004] Expecting \\\\, got %s\n", $tmp); 31 printf("[005] Expecting \", got %s\n", $tmp); 34 printf("[006] Expecting ', got %s\n", $tmp); 36 if ("\\n" !== ($tmp = mysqli_real_escape_string($link, "\n"))) 37 printf("[007] Expecting \\n, got %s\n", $tmp); 40 printf("[008] Expecting \\r, got %s\n", $tmp); 43 printf("[009] Expecting %s, got %s\n", "foo\\0bar", $tmp); [all …]
|
H A D | mysqli_autocommit.phpt | 26 printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 29 printf("[002] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 32 printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp); 43 printf("[006] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 46 printf("[007] [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 51 printf("[008] Cannot turn off autocommit\n"); 54 printf("[009] Expecting true, got %s/%s\n", gettype($tmp), $tmp); 61 printf("[011] Cannot turn on autocommit\n"); 96 printf("[021] Cannot turn on autocommit\n"); 99 printf("[022] Expecting true, got %s/%s\n", gettype($tmp), $tmp); [all …]
|
/PHP-7.1/tests/classes/ |
H A D | __call_006.phpt | 24 echo "---> Invoke __call via simple method call.\n"; 28 echo "Exception caught OK; continuing.\n"; 31 echo "\n\n---> Invoke __call via scope resolution operator within instance.\n"; 35 echo "Exception caught OK; continuing.\n"; 38 echo "\n\n---> Invoke __call via scope resolution operator within child instance.\n"; 43 echo "Exception caught OK; continuing.\n"; 46 echo "\n\n---> Invoke __call via callback.\n"; 50 echo "Exception caught OK; continuing.\n";
|
/PHP-7.1/ext/enchant/tests/ |
H A D | broker_free_02.phpt | 8 if(!is_resource(enchant_broker_init())) {die("skip, resource dont load\n");} 18 echo("OK\n"); 22 echo("OK\n"); 31 echo("OK\n"); 34 echo("OK\n"); 37 echo("broker free failed\n"); 40 echo("broker dict free failed\n"); 43 echo("dict add to personal failed\n"); 46 echo("broker request dict failed\n"); 49 echo("init failed\n"); [all …]
|
/PHP-7.1/ext/spl/tests/ |
H A D | iterator_013.phpt | 6 echo "===Empty===\n"; 12 echo "$key=>$val\n"; 15 echo "===Append===\n"; 21 echo "$key=>$val\n"; 24 echo "===Rewind===\n"; 28 echo "$key=>$val\n"; 31 echo "===Append===\n"; 37 echo "$key=>$val\n"; 40 echo "===Rewind===\n"; 44 echo "$key=>$val\n";
|
H A D | iterator_020.phpt | 6 echo "===Empty===\n"; 12 echo "$key=>$val\n"; 15 echo "===Append===\n"; 21 echo "$key=>$val\n"; 24 echo "===Rewind===\n"; 28 echo "$key=>$val\n"; 31 echo "===Append===\n"; 37 echo "$key=>$val\n"; 40 echo "===Rewind===\n"; 44 echo "$key=>$val\n";
|
/PHP-7.1/ext/standard/tests/general_functions/ |
H A D | get_defined_vars_basic.phpt | 11 echo "Simple testcase for get_defined_vars() function\n\n"; 14 echo "\n-- Function f1() called --\n"; 18 echo "TEST FAILED\n"; 21 echo "\n-- ..define some local variables --\n"; 32 echo "\n -- Function f2() called --\n"; 36 echo "TEST FAILED\n"; 39 echo "\n-- ...define some variables --\n"; 47 echo "\n-- ...define some more variables --\n"; 55 echo "\n-- Get variables at global scope --\n"; 59 echo "TEST FAILED - Global variables missing at global scope\n";
|
/PHP-7.1/ext/mbstring/ |
H A D | mb_gpc.c | 231 n = 0; in _php_mb_encoding_handler_ex() 239 n++; in _php_mb_encoding_handler_ex() 247 n++; in _php_mb_encoding_handler_ex() 250 len_list[n] = 0; in _php_mb_encoding_handler_ex() 252 n++; in _php_mb_encoding_handler_ex() 273 n = 0; in _php_mb_encoding_handler_ex() 280 n++; in _php_mb_encoding_handler_ex() 310 n = 0; in _php_mb_encoding_handler_ex() 311 while (n < num) { in _php_mb_encoding_handler_ex() 319 n++; in _php_mb_encoding_handler_ex() [all …]
|
/PHP-7.1/ext/json/tests/ |
H A D | bug73254.phpt | 10 echo json_encode([json_encode([1], JSON_PRETTY_PRINT)]), "\n"; 14 echo json_encode($data), "\n"; 15 echo json_encode([json_encode([1], JSON_PRETTY_PRINT)]), "\n"; 19 ["[\n 1\n]"] 21 ["[\n 1\n]"]
|
/PHP-7.1/ext/oci8/tests/ |
H A D | ini_1.phpt | 24 echo "Test 1 - check initialization\n"; 26 echo 'oci8.max_persistent = ' . ini_get('oci8.max_persistent') . "\n"; 28 echo 'oci8.ping_interval = ' . ini_get('oci8.ping_interval') . "\n"; 29 echo 'oci8.connection_class = ' . ini_get('oci8.connection_class') . "\n"; 30 echo 'oci8.events = ' . ini_get('oci8.events') . "\n"; 32 echo 'oci8.default_prefetch = ' . ini_get('oci8.default_prefetch') . "\n"; 35 echo "Test 2 - check what can be changed at runtime\n"; 39 echo 'oci8.max_persistent = ' . ini_get('oci8.max_persistent') . "\n"; 43 echo 'oci8.ping_interval = ' . ini_get('oci8.ping_interval') . "\n"; 45 echo 'oci8.connection_class = ' . ini_get('oci8.connection_class') . "\n"; [all …]
|
/PHP-7.1/ext/standard/tests/file/ |
H A D | file_variation9.phpt | 13 echo "*** Testing file() : variation ***\n"; 18 "File ends on a new line\n", 19 "File ends on multiple newlines\n\n\n\n", 20 "File has\n\nmultiple lines and newlines\n\n", 21 "File has\r\nmultiple crlfs\n\r\n" 33 echo "\n*** Done ***\n";
|
/PHP-7.1/ext/hash/tests/ |
H A D | hash_hmac_file_basic.phpt | 15 echo "*** Testing hash_hmac_file() : basic functionality ***\n"; 40 echo "crc32: " . hash_hmac_file('crc32', $file, $key) . "\n"; 41 echo "gost: " . hash_hmac_file('gost', $file, $key) . "\n"; 43 echo "md2: " . hash_hmac_file('md2', $file, $key) . "\n"; 44 echo "md4: " . hash_hmac_file('md4', $file, $key) . "\n"; 45 echo "md5: " . hash_hmac_file('md5', $file, $key) . "\n"; 50 echo "sha1: " . hash_hmac_file('sha1', $file, $key) . "\n"; 51 echo "sha256: " . hash_hmac_file('sha256', $file, $key) . "\n"; 52 echo "sha384: " . hash_hmac_file('sha384', $file, $key) . "\n"; 53 echo "sha512: " . hash_hmac_file('sha512', $file, $key) . "\n"; [all …]
|
/PHP-7.1/ext/standard/tests/class_object/ |
H A D | forward_static_call_001.phpt | 10 echo static::NAME, "\n"; 19 echo self::NAME, "\n"; 24 echo self::NAME, "\n"; 29 echo self::NAME, "\n"; 40 echo self::NAME, "\n"; 46 echo "-\n"; 48 echo "-\n"; 50 echo "-\n"; 52 echo "-\n"; 54 echo "-\n"; [all …]
|
/PHP-7.1/Zend/tests/ |
H A D | closure_044.phpt | 20 echo "Before binding", "\n"; 21 $nonstaticUnscoped(); echo "\n"; 22 $nonstaticScoped(); echo "\n"; 24 echo "After binding, null scope, no instance", "\n"; 25 $d = $nonstaticUnscoped->bindTo(null, null); $d(); echo "\n"; 26 $d = $nonstaticScoped->bindTo(null, null); $d(); echo "\n"; 28 echo "After binding, null scope, with instance", "\n"; 32 echo "After binding, with scope, no instance", "\n"; 34 $d = $nonstaticScoped->bindTo(null, 'A'); $d(); echo "\n"; 36 echo "After binding, with scope, with instance", "\n"; [all …]
|
/PHP-7.1/ext/mbstring/tests/ |
H A D | mb_convert_variables.phpt | 23 echo "== SCALER TEST ==\n"; 26 print("$encoding\n"); // SJIS 31 print("$encoding\n"); // JIS 36 print("$encoding\n"); // EUC-JP 41 print("$encoding\n"); // EUC-JP 49 print("$encoding\n"); // EUC-JP 56 echo "== ARRAY TEST ==\n"; 60 print("$encoding\n"); // EUC-JP 66 print("$encoding\n"); // EUC-JP 72 echo "== OBJECT TEST ==\n"; [all …]
|