/PHP-5.6/ext/json/tests/ |
H A D | bug41067.phpt | 9 print bin2hex($single_barline) . "\n"; 10 // print $single_barline . "\n\n"; 12 print $json . "\n\n"; 14 // print $json_decoded[0] . "\n"; 15 print bin2hex($json_decoded[0]) . "\n"; 16 print "END\n";
|
/PHP-5.6/ext/mbstring/tests/ |
H A D | mb_convert_encoding_stateful.phpt | 10 echo "ISO-2022-JP empty segment\n"; 11 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b24402121"), "UTF-8", "ISO-2022-JP")), "\n"; 12 echo bin2hex(mb_convert_encoding(pack("H*", "1b24421b24422121"), "UTF-8", "ISO-2022-JP")), "\n"; 13 echo bin2hex(mb_convert_encoding(pack("H*", "1b28421b284261626364"), "UTF-8", "ISO-2022-JP")), "\n"; 14 echo bin2hex(mb_convert_encoding(pack("H*", "1b284a1b284a61626364"), "UTF-8", "ISO-2022-JP")), "\n"; 15 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b284261626364"), "UTF-8", "ISO-2022-JP")), "\n"; 16 echo bin2hex(mb_convert_encoding(pack("H*", "1b24401b284a61626364"), "UTF-8", "ISO-2022-JP")), "\n"; 17 echo bin2hex(mb_convert_encoding(pack("H*", "1b24421b284261626364"), "UTF-8", "ISO-2022-JP")), "\n"; 19 echo "ISO-2022-KR empty segment\n"; 21 echo "HZ empty segment\n"; [all …]
|
/PHP-5.6/ext/standard/tests/array/ |
H A D | array_shift_variation6.phpt | 16 echo "*** Testing array_shift() : usage variations ***\n"; 18 echo "\n-- Variable is referenced array --\n"; 24 echo "\n\$original_array:\n"; 26 echo "\n\$copied_array:\n"; 29 echo "\n-- Element is referenced array --\n"; 33 echo "\n\$new_array:\n"; 35 echo "\n\$copied_array\n";
|
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-5.6/ext/standard/tests/strings/ |
H A D | printf_basic2.phpt | 10 echo "*** Testing printf() : basic functionality - using integer format ***\n"; 22 echo "\n-- Calling printf() with no arguments --\n"; 24 echo "\n"; 27 echo "\n-- Calling printf() with one arguments--\n"; 29 echo "\n"; 32 echo "\n-- Calling printf() with two arguments--\n"; 34 echo "\n"; 37 echo "\n-- Calling printf() with three arguments--\n"; 39 echo "\n";
|
H A D | printf_basic4.phpt | 10 echo "*** Testing printf() : basic functionality - using bool format ***\n"; 22 echo "\n-- Calling printf() with no arguments --\n"; 24 echo "\n"; 27 echo "\n-- Calling printf() with one arguments--\n"; 29 echo "\n"; 32 echo "\n-- Calling printf() with two arguments--\n"; 34 echo "\n"; 37 echo "\n-- Calling printf() with three arguments--\n"; 39 echo "\n";
|
H A D | printf_basic5.phpt | 10 echo "*** Testing printf() : basic functionality - using char format ***\n"; 22 echo "\n-- Calling printf() with no arguments --\n"; 24 echo "\n"; 27 echo "\n-- Calling printf() with one arguments --\n"; 29 echo "\n"; 32 echo "\n-- Calling printf() with two arguments --\n"; 34 echo "\n"; 37 echo "\n-- Calling printf() with three arguments --\n"; 39 echo "\n";
|
H A D | printf_basic6.phpt | 10 echo "*** Testing printf() : basic functionality - using exponential format ***\n"; 21 echo "\n-- Calling printf() with no arguments --\n"; 23 echo "\n"; 26 echo "\n-- Calling printf() with one argument --\n"; 28 echo "\n"; 31 echo "\n-- Calling printf() with two arguments --\n"; 33 echo "\n"; 36 echo "\n-- Calling printf() with three arguments --\n"; 38 echo "\n";
|
H A D | str_getcsv_001.phpt | 8 print "-----\n"; 10 print "-----\n"; 12 print "-----\n"; 14 print "-----\n"; 16 print "-----\n"; 18 print "-----\n"; 20 print "-----\n"; 22 print "-----\n"; 24 print "-----\n"; 26 print "-----\n"; [all …]
|
H A D | sprintf_variation52.phpt | 10 echo "*** Testing sprintf() : with typical format strings ***\n"; 16 echo"\n-- Testing for '%%%.2f' as the format parameter --\n"; 19 echo"\n-- Testing for '%%' as the format parameter --\n"; 22 echo"\n-- Testing for precision value more than maximum --\n"; 25 echo"\n-- Testing for invalid width(-15) specifier --\n"; 28 echo"\n-- Testing for '%X' as the format parameter --\n"; 31 echo"\n-- Testing for multiple format parameters --\n"; 32 var_dump(sprintf("%d %s %d\n", $tempnum, $tempstring, $tempnum)); 34 echo"\n-- Testing for excess of mixed type arguments --\n";
|
H A D | htmlspecialchars_decode_variation7.phpt | 21 echo "$t\tDECODED\n"; 25 echo "\n*** XHTML 1.0/ENT_QUOTES ***\n"; 32 echo "$t\tDECODED\n"; 36 echo "\n*** HTML5/ENT_QUOTES ***\n"; 43 echo "$t\tDECODED\n"; 47 echo "\n*** XML 1.0/ENT_QUOTES ***\n"; 54 echo "$t\tDECODED\n"; 58 echo "\n*** HTML5/ENT_NOQUOTES ***\n"; 65 echo "$t\tDECODED\n"; 69 echo "\n*** HTML5/ENT_COMPAT ***\n"; [all …]
|
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";
|
/PHP-5.6/ext/spl/tests/ |
H A D | iterator_028.phpt | 10 echo "===?===\n"; 12 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 14 echo "===2===\n"; 17 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 19 echo "===X===\n"; 22 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 24 echo "===3===\n"; 27 foreach($it as $v) echo $it->getDepth() . ": $v\n"; 29 echo "===5===\n"; 34 echo "===0===\n"; [all …]
|
/PHP-5.6/tests/lang/ |
H A D | static_basic_001.phpt | 6 echo "\nSame variable used as static and non static.\n"; 8 echo "---------\n"; 10 echo "$a\n"; 12 echo "$a\n"; 24 echo "Unitialised : $a\n"; 25 echo "Initialised to 10: $b\n"; 26 echo "Initialised to 20: $c\n"; 27 echo "Unitialised : $d\n"; 28 echo "Initialised to 30: $e\n"; 40 echo "\nUsing static keyword at global scope\n"; [all …]
|
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-5.6/ext/ereg/regex/ |
H A D | split.c | 156 register int n; local 161 for (n = atoi(argv[3]); n > 0; n--) { 165 for (n = atoi(argv[3]); n > 0; n--) { 280 register int n; in regress() local 287 for (n = 0; tests[n].str != NULL; n++) { in regress() 288 (void) strcpy(buf, tests[n].str); in regress() 292 if (nf != tests[n].nf) { in regress() 294 tests[n].str, tests[n].seps, nf, tests[n].nf); in regress() 304 if (strcmp(f, tests[n].fi[i]) != 0) { in regress() 306 tests[n].str, tests[n].seps, in regress() [all …]
|
/PHP-5.6/tests/classes/ |
H A D | tostring_004.phpt | 6 echo "Error: $err_no - $err_msg\n"; 12 echo "Object with no __toString():\n"; 14 echo "Try 1:\n"; 16 printf("\n"); 18 echo "\nTry 2:\n"; 19 printf($obj . "\n"); 22 echo "\n\nObject with bad __toString():\n"; 29 echo "Try 1:\n"; 31 printf("\n"); 33 echo "\nTry 2:\n"; [all …]
|
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-5.6/ext/oci8/tests/ |
H A D | lob_031.phpt | 38 echo " 1. ".$row[0]->tell(). "\n"; 41 echo " 2. ".$row[0]->tell(). "\n"; 44 echo " 3. ".$row[0]->tell(). "\n"; 47 echo " 4. ".$row[0]->tell(). "\n"; 50 echo " 5. ".$row[0]->tell(). "\n"; 54 echo " 6. ".$row[0]->tell(). "\n"; 57 echo " 8. ".$row[0]->tell(). "\n"; 61 echo " 9. ".$row[0]->tell(). "\n"; 64 echo "10. ".$row[0]->tell(). "\n"; 67 echo "11. ".$row[0]->tell(). "\n"; [all …]
|
/PHP-5.6/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-5.6/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-5.6/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-5.6/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 …]
|
/PHP-5.6/ext/mbstring/ |
H A D | mb_gpc.c | 233 n = 0; in _php_mb_encoding_handler_ex() 241 n++; in _php_mb_encoding_handler_ex() 249 n++; in _php_mb_encoding_handler_ex() 252 len_list[n] = 0; in _php_mb_encoding_handler_ex() 254 n++; in _php_mb_encoding_handler_ex() 275 n = 0; in _php_mb_encoding_handler_ex() 282 n++; in _php_mb_encoding_handler_ex() 312 n = 0; in _php_mb_encoding_handler_ex() 313 while (n < num) { in _php_mb_encoding_handler_ex() 321 n++; in _php_mb_encoding_handler_ex() [all …]
|
/PHP-5.6/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";
|