/PHP-5.3/ext/standard/tests/strings/ |
H A D | str_rot13_basic.phpt | 9 echo "*** Testing str_rot13() : basic functionality ***\n"; 11 echo "\nBasic tests\n"; 15 echo "\nEnsure numeric characters are left untouched\n"; 17 echo "Strings equal : TEST PASSED\n"; 19 echo "Strings unequal : TEST FAILED\n"; 22 echo "\nEnsure non-alphabetic characters are left untouched\n"; 24 echo "Strings equal : TEST PASSED\n"; 26 echo "Strings unequal : TEST FAILED\n"; 29 echo "\nEnsure strings round trip\n"; 34 echo "Strings equal : TEST PASSED\n"; [all …]
|
H A D | printf_basic9.phpt | 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"; 41 echo "\n-- Calling printf() with two arguments --\n"; 43 echo "\n"; 46 echo "\n"; 49 echo "\n-- Calling printf() with three arguments --\n"; 51 echo "\n"; [all …]
|
/PHP-5.3/ext/pgsql/tests/ |
H A D | 27large_object_oid.phpt | 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"); 37 if ($oid != 21002) echo ("pg_lo_create() wrong id\n"); 41 echo "OK";
|
H A D | 26async_query_prepared.phpt | 18 echo "pg_send_prepare() error\n"; 22 echo "pg_connection_status() error\n"; 26 echo "pg_get_result() error\n"; 31 echo "pg_send_execute() error\n"; 39 echo "pg_get_result() error\n"; 43 echo "pg_num_rows() error\n"; 73 echo "pg_send_prepare() error\n"; 81 echo "pg_get_result() error\n"; 87 echo "pg_send_execute() error\n"; 95 echo "pg_get_result() error\n"; [all …]
|
H A D | 28large_object_import_oid.phpt | 17 echo "import LO from int\n"; 20 if (!$oid) echo ("pg_lo_import() error\n"); 21 if ($oid != 21003) echo ("pg_lo_import() wrong id\n"); 25 echo "import LO from string\n"; 28 if (!$oid) echo ("pg_lo_import() error\n"); 29 if ($oid != 21004) echo ("pg_lo_import() wrong id\n"); 33 echo "import LO using default connection\n"; 36 if (!$oid) echo ("pg_lo_import() error\n"); 37 if ($oid != 21005) echo ("pg_lo_import() wrong id\n"); 42 echo "OK";
|
/PHP-5.3/ext/standard/tests/array/ |
H A D | array_walk_variation8.phpt | 14 * echo language construct 17 echo "*** Testing array_walk() : built-in function as callback ***\n"; 21 echo "-- With 'pow' built-in function --\n"; 24 echo "-- With 'min' built-in function --\n"; 27 echo "-- With 'echo' language construct --\n"; 28 var_dump( array_walk($input, "echo")); 30 echo "Done" 38 -- With 'echo' language construct -- 40 Warning: array_walk() expects parameter 2 to be a valid callback, function 'echo' not found or inva…
|
H A D | array_shift_variation6.phpt | 16 echo "*** Testing array_shift() : usage variations ***\n"; 18 echo "\n-- Variable is referenced array --\n"; 22 echo "Result: "; 24 echo "\n\$original_array:\n"; 26 echo "\n\$copied_array:\n"; 29 echo "\n-- Element is referenced array --\n"; 31 echo "Result: "; 33 echo "\n\$new_array:\n"; 35 echo "\n\$copied_array\n"; 38 echo "Done";
|
H A D | array_walk_recursive_variation8.phpt | 14 * echo language construct 17 echo "*** Testing array_walk_recursive() : built-in function as callback ***\n"; 21 echo "-- With 'pow' built-in function --\n"; 24 echo "-- With 'min' built-in function --\n"; 27 echo "-- With 'echo' language construct --\n"; 28 var_dump( array_walk_recursive($input, "echo")); 30 echo "Done" 38 -- With 'echo' language construct -- 40 Warning: array_walk_recursive() expects parameter 2 to be a valid callback, function 'echo' not fou…
|
/PHP-5.3/ext/spl/tests/ |
H A D | dllist_004.phpt | 12 echo "Exception: ".$e->getMessage()."\n"; 17 echo "Exception: ".$e->getMessage()."\n"; 26 echo $stack->pop()."\n"; 27 echo $stack->pop()."\n"; 32 echo $stack->top()."\n"; 36 echo "[$elem]\n"; 42 echo count($stack)."\n"; 43 echo $stack->count()."\n"; 51 echo count($stack)."\n";
|
H A D | dllist_005.phpt | 12 echo "Exception: ".$e->getMessage()."\n"; 17 echo "Exception: ".$e->getMessage()."\n"; 26 echo $queue->dequeue()."\n"; 27 echo $queue->dequeue()."\n"; 32 echo $queue->top()."\n"; 36 echo "[$elem]\n"; 42 echo count($queue)."\n"; 43 echo $queue->count()."\n"; 51 echo count($queue)."\n";
|
H A D | bug45622b.phpt | 6 function __get($n) { echo "In " . __METHOD__ . "!\n"; } 7 function __set($n, $v) { echo "In " . __METHOD__ . "!\n"; } 8 function __isset($n) { echo "In " . __METHOD__ . "!\n"; } 9 function __unset($n) { echo "In " . __METHOD__ . "!\n"; } 13 echo "Doesn't trigger __get.\n"; 14 echo $ao->prop1; 16 echo "Doesn't trigger __set.\n"; 19 echo "Doesn't trigger __unset.\n"; 22 echo "Shouldn't trigger __isset.\n";
|
H A D | spl_autoload_001.phpt | 8 echo "===EMPTY===\n"; 18 echo 'Exception: ' . $e->getMessage() . "\n"; 25 echo "===($exts)===\n"; 32 echo 'Exception: ' . $e->getMessage() . "\n"; 43 echo 'Exception: ' . $e->getMessage() . "\n"; 48 echo __METHOD__ . "($classname)\n"; 53 echo __METHOD__ . "($classname)\n"; 56 echo "===SPL_AUTOLOAD()===\n"; 70 echo "===REGISTER===\n"; 87 echo "===LOAD===\n"; [all …]
|
H A D | recursive_tree_iterator_001.phpt | 28 echo "-- flags = BYPASS_KEY --\n"; 30 echo "[$k] => $v\n"; 32 echo "-- flags = BYPASS_CURRENT --\n"; 34 echo "[$k] => $v\n"; 36 echo "-- flags = BYPASS_KEY|BYPASS_KEY --\n"; 38 echo "[$k] => $v\n"; 40 echo "-- flags = 0 --\n"; 42 echo "[$k] => $v\n"; 44 echo "-- flags = 0, caching_it_flags = CachingIterator::CATCH_GET_CHILD --\n"; 46 echo "[$k] => $v\n";
|
/PHP-5.3/Zend/tests/ |
H A D | lsb_002.phpt | 43 echo $testClass->testStaticVar() . "\n"; 44 echo $testClass->testClassConst() . "\n"; 45 echo $testClass->testStaticFunction() . "\n"; 47 echo $childClass1->testStaticVar() . "\n"; 48 echo $childClass1->testClassConst() . "\n"; 49 echo $childClass1->testStaticFunction() . "\n"; 51 echo $childClass2->testStaticVar() . "\n"; 52 echo $childClass2->testClassConst() . "\n"; 53 echo $childClass2->testStaticFunction() . "\n";
|
H A D | ns_010.phpt | 11 echo "class ok\n"; 14 echo "method ok\n"; 23 echo Foo::C; 24 echo Y\Foo::C; 25 echo \X\Foo::C; 26 echo Foo::$var; 27 echo Y\Foo::$var; 28 echo \X\Foo::$var;
|
H A D | bug37632.phpt | 10 echo __METHOD__ . "\n"; 18 echo __METHOD__ . "\n"; 27 echo __METHOD__ . "\n"; 38 echo __METHOD__ . "\n"; 46 echo __METHOD__ . "\n"; 55 echo __METHOD__ . "\n"; 74 echo __METHOD__ . "\n"; 82 echo __METHOD__ . "\n"; 91 echo __METHOD__ . "\n"; 103 echo __METHOD__ . "\n"; [all …]
|
/PHP-5.3/ext/date/tests/ |
H A D | bug33578.phpt | 6 echo date('m/d/Y', strtotime('Oct 11')), "\n"; 7 echo date('m/d/Y', strtotime('11 Oct')), "\n"; 8 echo date('m/d/Y', strtotime('11 Oct 2005')), "\n"; 9 echo date('m/d/Y', strtotime('Oct11')), "\n"; 10 echo date('m/d/Y', strtotime('11Oct')), "\n"; 11 echo date('m/d/Y', strtotime('11Oct 2005')), "\n"; 12 echo date('m/d/Y', strtotime('11Oct2005')), "\n";
|
H A D | DateTime_data-fall-type2-type3.inc | 23 echo "test_time_fall_type2_prev_type3_prev: "; 28 echo "test_time_fall_type2_prev_type3_dt: "; 45 echo "test_time_fall_type2_prev_type3_st: "; 50 echo "test_time_fall_type2_prev_type3_post: "; 55 echo "test_time_fall_type2_dt_type3_prev: "; 60 echo "test_time_fall_type2_dt_type3_dt: "; 77 echo "test_time_fall_type2_dt_type3_st: "; 82 echo "test_time_fall_type2_dt_type3_post: "; 151 echo "test_time_fall_type2_st_type3_prev: "; 156 echo "test_time_fall_type2_st_type3_dt: "; [all …]
|
/PHP-5.3/ext/standard/tests/file/ |
H A D | stream_rfc2397_007.phpt | 14 echo "===$stream===\n"; 20 echo "===S:4,S===\n"; 24 echo "===GETC===\n"; 28 echo "===GETC===\n"; 32 echo "===REWIND===\n"; 36 echo "===GETC===\n"; 40 echo "===S:3,S===\n"; 44 echo "===S:1,C===\n"; 48 echo "===S:-2,C===\n"; 56 echo "===S:3,S===\n"; [all …]
|
H A D | fopen_variation19.phpt | 40 echo "soft link:"; 42 echo "hard link:"; 44 echo "link of link:"; 48 echo "soft link:"; 50 echo "hard link:"; 52 echo "link of link:"; 56 echo "soft link:"; 58 echo "hard link:"; 60 echo "link of link:"; 74 echo "\n"; [all …]
|
/PHP-5.3/ext/hash/tests/ |
H A D | sha224.phpt | 7 echo hash('sha224', '') . "\n"; 8 echo hash('sha224', 'a') . "\n"; 9 echo hash('sha224', '012345678901234567890123456789012345678901234567890123456789') . "\n"; 12 echo hash('sha224', 'abc') . "\n"; 13 echo hash('sha224', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n"; 14 echo hash('sha224', str_repeat('a', 1000000)) . "\n";
|
H A D | sha256.phpt | 7 echo hash('sha256', '') . "\n"; 8 echo hash('sha256', 'a') . "\n"; 9 echo hash('sha256', '012345678901234567890123456789012345678901234567890123456789') . "\n"; 12 echo hash('sha256', 'abc') . "\n"; 13 echo hash('sha256', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n"; 14 echo hash('sha256', str_repeat('a', 1000000)) . "\n";
|
H A D | sha384.phpt | 7 echo hash('sha384', '') . "\n"; 8 echo hash('sha384', 'a') . "\n"; 9 echo hash('sha384', '012345678901234567890123456789012345678901234567890123456789') . "\n"; 12 echo hash('sha384', 'abc') . "\n"; 13 echo hash('sha384', 'abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmno… 14 echo hash('sha384', str_repeat('a', 1000000)) . "\n";
|
H A D | sha512.phpt | 7 echo hash('sha512', '') . "\n"; 8 echo hash('sha512', 'a') . "\n"; 9 echo hash('sha512', '012345678901234567890123456789012345678901234567890123456789') . "\n"; 12 echo hash('sha512', 'abc') . "\n"; 13 echo hash('sha512', 'abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmnhijklmnoijklmnopjklmno… 14 echo hash('sha512', str_repeat('a', 1000000)) . "\n";
|
H A D | sha1.phpt | 7 echo hash('sha1', '') . "\n"; 8 echo hash('sha1', 'a') . "\n"; 9 echo hash('sha1', '012345678901234567890123456789012345678901234567890123456789') . "\n"; 12 echo hash('sha1', 'abc') . "\n"; 13 echo hash('sha1', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n"; 14 echo hash('sha1', str_repeat('a', 1000000)) . "\n";
|