/PHP-7.4/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.4/ext/standard/tests/strings/ |
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 | 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";
|
/PHP-7.4/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-7.4/ext/calendar/tests/ |
H A D | jdtofrench.phpt | 7 echo jdtofrench(0). "\n"; 8 echo jdtofrench(2375840). "\n"; 9 echo jdtofrench(2375850). "\n"; 10 echo jdtofrench(2375940). "\n"; 11 echo jdtofrench(2376345). "\n"; 12 echo jdtofrench(2385940). "\n";
|
H A D | jdtogregorian.phpt | 7 echo jdtogregorian(0). "\n"; 8 echo jdtogregorian(1). "\n"; 9 echo jdtogregorian(2298874). "\n"; 10 echo jdtogregorian(2299151). "\n"; 11 echo jdtogregorian(2440588). "\n"; 12 echo jdtogregorian(2816423). "\n";
|
H A D | jdtojulian.phpt | 7 echo jdtojulian(0). "\n"; 8 echo jdtojulian(1). "\n"; 9 echo jdtojulian(2298874). "\n"; 10 echo jdtojulian(2299151). "\n"; 11 echo jdtojulian(2440588). "\n"; 12 echo jdtojulian(2816423). "\n";
|
H A D | juliantojd.phpt | 7 echo juliantojd( 0, 0, 0). "\n"; 8 echo juliantojd( 1, 1, 1582). "\n"; 9 echo juliantojd(10, 5, 1582). "\n"; 10 echo juliantojd( 1, 1, 1970). "\n"; 11 echo juliantojd( 1, 1, 2999). "\n"; 12 echo juliantojd( 1, 1, -4713). "\n";
|
/PHP-7.4/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";
|
/PHP-7.4/Zend/tests/closures/ |
H A D | closure_from_callable_error.phpt | 8 echo 'Cannot access privateInstance method statically'."\n"; 11 echo "Test failed to fail and return was : ".var_export($fn, true)."\n"; 33 echo 'Cannot access privateInstance method'."\n"; 45 echo 'SubClass cannot access private instance method'."\n"; 48 echo "Test failed to fail, closure is : ".var_export($fn, true)."\n"; 57 echo 'Cannot access private static function of instance'."\n"; 69 echo 'Cannot access private static method statically'."\n"; 93 echo 'Non-existent method should fail'."\n"; 105 echo 'Non-existent class should fail'."\n"; 117 echo 'Non-existent function should fail'."\n"; [all …]
|
/PHP-7.4/ext/hash/tests/ |
H A D | md2.phpt | 5 echo hash('md2', '') . "\n"; 6 echo hash('md2', 'a') . "\n"; 7 echo hash('md2', 'abc') . "\n"; 8 echo hash('md2', 'message digest') . "\n"; 9 echo hash('md2', 'abcdefghijklmnopqrstuvwxyz') . "\n"; 10 echo hash('md2', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n"; 11 …('md2', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n";
|
H A D | md4.phpt | 6 echo hash('md4', '') . "\n"; 7 echo hash('md4', 'a') . "\n"; 8 echo hash('md4', 'abc') . "\n"; 9 echo hash('md4', 'message digest') . "\n"; 10 echo hash('md4', 'abcdefghijklmnopqrstuvwxyz') . "\n"; 11 echo hash('md4', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n"; 12 …('md4', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n";
|
/PHP-7.4/ext/readline/tests/ |
H A D | bug77812-libedit.phpt | 16 fwrite($pipes[0], "echo <<<FOO\n bar\n FOO;\n"); 17 fwrite($pipes[0], "print(<<<FOO\nxx\nFOO);\n"); 18 fwrite($pipes[0], "echo <<<FOO\n xxx\n FOO;\nFOO\n;\n"); 19 fwrite($pipes[0], "echo <<<FOO\nFOOL\nFOO\n,1;\n"); 20 fwrite($pipes[0], "echo <<<FOO\nFOO4\nFOO\n,2;\n");
|
/PHP-7.4/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.4/Zend/tests/try/ |
H A D | try_finally_019.phpt | 6 public $n = 0; 7 function __construct($n) { 8 $this->n = $n; 11 echo "destruct" . $this->n . "\n"; 26 echo "finally1\n"; 31 echo "finally2\n";
|
/PHP-7.4/tests/lang/ |
H A D | 021.phpt | 8 echo "i=$i\n"; 12 echo "In branch 0\n"; 15 echo "In branch 1\n"; 18 echo "In branch 2\n"; 21 echo "In branch 3\n"; 24 echo "In branch 4\n"; 27 echo "In default\n"; 31 echo "hi\n";
|
/PHP-7.4/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.4/sapi/cli/tests/ |
H A D | bug78323.phpt | 24 echo $lines[0], "\n", 25 $lines[1], "\n", 26 "Done: $exitCode\n\n"; 36 echo $lines[0], "\n", 37 $lines[1], "\n", 38 "Done: $exitCode\n\n"; 48 echo $lines[0], "\n", 49 $lines[1], "\n", 50 "Done: $exitCode\n\n"; 60 echo $lines[0], "\n", [all …]
|
/PHP-7.4/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_class_mysqli_driver_interface.phpt | 16 printf("Parent class:\n"); 19 printf("\nMethods:\n"); 30 printf("Dumping list of missing methods.\n"); 34 printf("Dumping list of unexpected methods.\n"); 38 printf("ok\n"); 40 printf("\nClass variables:\n"); 44 printf("%s\n", $var); 46 printf("\nObject variables:\n"); 49 printf("%s\n", $var); 51 printf("\nMagic, magic properties:\n"); [all …]
|
/PHP-7.4/ext/dba/tests/ |
H A D | dba009.phpt | 11 echo "database handler: $handler\n"; 12 if (($db=dba_popen($db_file, "n", $handler))!==FALSE) { 13 echo "Opened\n"; 15 echo dba_fetch("a", $db)."\n"; 17 echo "Closed\n"; 19 echo "Error creating database\n"; 21 if (($db=dba_popen($db_file, "n", $handler))!==FALSE) { 22 echo "Opened\n"; 24 echo dba_fetch("a", $db)."\n";
|
/PHP-7.4/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 …]
|