/PHP-5.4/ext/iconv/tests/ |
H A D | iconv_substr.phpt | 34 bar("This is a test", 100000); 35 bar("This is a test", 0, 100000); 36 bar("This is a test", -3); 37 bar("This is a test", 0, -9); 38 bar("This is a test", 0, -100000); 39 bar("This is a test", -9, -100000); 49 string(14) "This is a test" 50 string(14) "This is a test"
|
/PHP-5.4/Zend/tests/ |
H A D | compare_001_64bit.phpt | 8 class test { 25 new test, 105 == object(test)#%d (0) {} 128 != object(test)#%d (0) {} 151 != object(test)#%d (0) {} 309 object(test)#%d (0) {} 312 object(test)#%d (0) {} 315 object(test)#%d (0) {} 326 object(test)#%d (0) {} == object(test)#%d (0) {} 328 object(test)#%d (0) {} [all …]
|
H A D | compare_003_64bit.phpt | 8 class test { 25 new test, 105 <= object(test)#%d (0) {} 128 > object(test)#%d (0) {} 151 <= object(test)#%d (0) {} 309 object(test)#%d (0) {} 312 object(test)#%d (0) {} 315 object(test)#%d (0) {} 326 object(test)#%d (0) {} <= object(test)#%d (0) {} 328 object(test)#%d (0) {} [all …]
|
H A D | compare_004_64bit.phpt | 8 class test { 25 new test, 105 >= object(test)#%d (0) {} 128 >= object(test)#%d (0) {} 151 < object(test)#%d (0) {} 309 object(test)#%d (0) {} 312 object(test)#%d (0) {} 315 object(test)#%d (0) {} 326 object(test)#%d (0) {} >= object(test)#%d (0) {} 328 object(test)#%d (0) {} [all …]
|
H A D | compare_005_64bit.phpt | 8 class test { 25 new test, 105 >= object(test)#%d (0) {} 128 >= object(test)#%d (0) {} 151 < object(test)#%d (0) {} 309 object(test)#%d (0) {} 312 object(test)#%d (0) {} 315 object(test)#%d (0) {} 326 object(test)#%d (0) {} >= object(test)#%d (0) {} 328 object(test)#%d (0) {} [all …]
|
H A D | compare_006_64bit.phpt | 8 class test { 25 new test, 105 <= object(test)#%d (0) {} 128 > object(test)#%d (0) {} 151 <= object(test)#%d (0) {} 309 object(test)#%d (0) {} 312 object(test)#%d (0) {} 315 object(test)#%d (0) {} 326 object(test)#%d (0) {} <= object(test)#%d (0) {} 328 object(test)#%d (0) {} [all …]
|
H A D | nowdoc_005.phpt | 2 unbraced complex variable replacement test (nowdoc) 9 This is nowdoc test #s $a, $b, $c['c'], and $d->d. 14 This is nowdoc test #s $a, $b, $c['c'], and $d->d. 22 This is nowdoc test #s $a, $b, $c['c'], and $d->d. 23 This is nowdoc test #s $a, $b, $c['c'], and $d->d.
|
H A D | nowdoc_006.phpt | 2 braced complex variable replacement test (nowdoc) 9 This is nowdoc test #s {$a}, {$b}, {$c['c']}, and {$d->d}. 14 This is nowdoc test #s {$a}, {$b}, {$c['c']}, and {$d->d}. 22 This is nowdoc test #s {$a}, {$b}, {$c['c']}, and {$d->d}. 23 This is nowdoc test #s {$a}, {$b}, {$c['c']}, and {$d->d}.
|
H A D | nowdoc_007.phpt | 2 braced and unbraced complex variable replacement test (nowdoc) 9 This is nowdoc test #s $a, {$b}, {$c['c']}, and {$d->d}. 14 This is nowdoc test #s $a, {$b}, {$c['c']}, and {$d->d}. 22 This is nowdoc test #s $a, {$b}, {$c['c']}, and {$d->d}. 23 This is nowdoc test #s $a, {$b}, {$c['c']}, and {$d->d}.
|
/PHP-5.4/ext/mbstring/tests/ |
H A D | zend_multibyte-13.phpt | 12 __halt_compiler();test 13 test 15 string(10) "test 16 test
|
H A D | zend_multibyte-14.phpt | 12 __halt_compiler();test 13 test 15 string(10) "test 16 test
|
/PHP-5.4/tests/security/ |
H A D | open_basedir_symlink.phpt | 17 $target = ($initdir."/test/ok/ok.txt"); 23 $symlink = ($initdir."/test/ok/symlink.txt"); 30 $target = ($initdir."/test/ok/ok.txt"); 36 $symlink = ($initdir."/test/ok/ok2/ok.txt"); 37 …ok.txt", $symlink)); // $target == (dirname($symlink)."/".$target) == ($initdir."/test/ok/ok.txt"); 58 Warning: symlink(): open_basedir restriction in effect. File(%s/test/symlink.txt) is not within the… 64 Warning: symlink(): open_basedir restriction in effect. File(%s/test/symlink.txt) is not within the… 67 Warning: symlink(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the… 70 Warning: symlink(): open_basedir restriction in effect. File(%s/test/bad) is not within the allowed… 73 Warning: symlink(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the… [all …]
|
/PHP-5.4/ext/phar/tests/tar/ |
H A D | 033a.phpt | 17 $phar->addEmptyDir('test'); 27 echo "test dir\n"; 28 var_dump($phar['test']->isReadable()); 29 $phar['test']->chmod(0000); 30 var_dump($phar['test']->isReadable()); 31 $phar['test']->chmod(0666); 32 var_dump($phar['test']->isReadable());
|
/PHP-5.4/ext/phar/tests/zip/ |
H A D | 033a.phpt | 17 $phar->addEmptyDir('test'); 27 echo "test dir\n"; 28 var_dump($phar['test']->isExecutable()); 29 $phar['test']->chmod(0777); 30 var_dump($phar['test']->isExecutable()); 31 $phar['test']->chmod(0666); 32 var_dump($phar['test']->isExecutable());
|
/PHP-5.4/ext/gd/tests/ |
H A D | jpg2gd.phpt | 2 jpeg <--> gd1/gd2 conversion test 18 echo imagegd(imagecreatefromjpeg($cwd . "/conv_test.jpeg"), $cwd . "/test.gd1") ? 'ok' : 'failed'; 22 echo imagegd2(imagecreatefromjpeg($cwd . "/conv_test.jpeg"), $cwd . "/test.gd2") ? 'ok' : 'failed'; 26 echo imagejpeg(imagecreatefromgd($cwd . "/test.gd1"), $cwd . "/test_gd1.jpeg") ? 'ok' : 'failed'; 30 echo imagejpeg(imagecreatefromgd2($cwd . "/test.gd2"), $cwd . "/test_gd2.jpeg") ? 'ok' : 'failed'; 33 @unlink($cwd . "/test.gd1"); 34 @unlink($cwd . "/test.gd2");
|
H A D | png2gd.phpt | 2 png <--> gd1/gd2 conversion test 18 echo imagegd(imagecreatefrompng($cwd . "/conv_test.png"), $cwd . "/test.gd1") ? 'ok' : 'failed'; 22 echo imagegd2(imagecreatefrompng($cwd . "/conv_test.png"), $cwd . "/test.gd2") ? 'ok' : 'failed'; 26 echo imagepng(imagecreatefromgd($cwd . "/test.gd1"), $cwd . "/test_gd1.png") ? 'ok' : 'failed'; 30 echo imagepng(imagecreatefromgd2($cwd . "/test.gd2"), $cwd . "/test_gd2.png") ? 'ok' : 'failed'; 33 @unlink($cwd . "/test.gd1"); 34 @unlink($cwd . "/test.gd2");
|
/PHP-5.4/ext/mysqli/tests/ |
H A D | mysqli_stmt_bind_param_many_columns.phpt | 14 The way we test the INSERT and data types overlaps with 15 the mysqli_stmt_bind_result test in large parts. There is only 16 one difference. This test uses mysqli_query()/mysqli_fetch_assoc() to 17 fetch the inserted values. This way we test 19 in this file and we test mysqli_stmt_bind_result() in the other 20 test -- therefore the "duplicate" makes some sense to me. 51 if (!mysqli_query($link, 'DROP TABLE IF EXISTS test')) { 52 printf("Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link)); 60 $link->query("CREATE TABLE test(" . implode(" , ", $str) . ") ENGINE=MyISAM"); 62 printf("Failed to create the test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link)); [all …]
|
/PHP-5.4/ext/hash/tests/ |
H A D | joaat.phpt | 18 foreach ($tests as $test) { 21 $result = hash("joaat", $test[0]); 22 if ($result != $test[1]) { 23 …echo "Iteration " . $i . " failed - expected '" . $test[1] . "', got '" . $result . "' for '" . $t…
|
/PHP-5.4/ext/standard/tests/file/ |
H A D | pathinfo_basic2.phpt | 20 'c:\test\..\test2\.\adir\afile.txt', 22 'c:\test\adir\afile..txt', 24 'c:\test\adir\afile.', 28 '..\.\..\test\afile.txt', 29 '.././../test/afile', 102 %unicode|string%(19) "c:\test\adir\afile." 130 %unicode|string%(19) "c:\test\adir\afile." 132 %unicode|string%(18) "c:\test\adir\afile" 190 %unicode|string%(18) "..\.\..\test\afile" 202 %unicode|string%(12) ".././../test" [all …]
|
H A D | userstreams_003.phpt | 30 function test($name, $fd, $return_value, $func, $args, $expected_option, $expected_value) { 39 var_dump(stream_wrapper_register('test', 'test_wrapper')); 42 $fd = fopen("test://foo","r"); 45 test("stream_set_blocking - 1", $fd, true, "stream_set_blocking", array($fd,0), STREAM_OPTION_BLOCK… 46 test("stream_set_blocking - 2", $fd, false, "stream_set_blocking", array($fd,1), STREAM_OPTION_BLOC… 47 test("stream_set_blocking - 3", $fd, "foo", "stream_set_blocking", array($fd,0), STREAM_OPTION_BLOC… 48 test("stream_set_blocking - 4", $fd2, true, "stream_set_blocking", array($fd2,1), STREAM_OPTION_BLO… 50 test("stream_set_write_buffer - 1", $fd, true, "stream_set_write_buffer", array($fd,0), STREAM_OPTI… 51 test("stream_set_write_buffer - 2", $fd, true, "stream_set_write_buffer", array($fd,4096), STREAM_O… 54 test("stream_set_timeout - 1", $fd, true, "stream_set_timeout", array($fd,10,11), STREAM_OPTION_REA… [all …]
|
/PHP-5.4/ext/phar/tests/cache_list/files/ |
H A D | write22.phar | 3 var_dump($p["test.txt"]->isCompressed()); 4 $p["test.txt"]->decompress(); 5 var_dump($p["test.txt"]->isCompressed()); 8 6test.txt���H���E���/�(P���p� �w��
|
H A D | write21.phar | 3 var_dump($p["test.txt"]->isCompressed()); 4 $p["test.txt"]->compress(Phar::GZ); 5 var_dump($p["test.txt"]->isCompressed()); 8 6test.txt{��H���E�<?php __HALT_COMPILER();u:ΰ�U��|ZM�̧�Є�…
|
/PHP-5.4/ext/standard/tests/strings/ |
H A D | php_strip_whitespace.phpt | 11 $data = '/* test comment */'; 15 $data = '<?php /* test comment */ ?>'; 20 /* test class */ 21 class test { 48 string(18) "/* test comment */" 51 class test { function foo () { echo $var; } } ?>"
|
/PHP-5.4/ext/standard/tests/url/ |
H A D | parse_url_basic_008.phpt | 58 --> http://www.php.net:80/?test=1 : string(6) "test=1" 59 --> http://www.php.net/?test=1& : string(7) "test=1&" 61 --> http://www.php.net:80/index.php?test=1& : string(7) "test=1&" 65 --> http://www.php.net:80/index.php?test=1&test2=char&test3=mixesCI : string(31) "test=1&test2=ch… 66 --> www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : string(31) "test=… 67 …-> http://secret@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : str… 68 --> http://secret:@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : strin… 69 … http://:hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : str… 70 …tp://secret:hideout@www.php.net/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : str… 71 …//secret@hideout@www.php.net:80/index.php?test=1&test2=char&test3=mixesCI#some_page_ref123 : str… [all …]
|
/PHP-5.4/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_subclass.phpt | 60 $db->exec('DROP TABLE IF EXISTS test'); 61 $db->exec('CREATE TABLE test(id INT)'); 62 $db->exec('INSERT INTO test(id) VALUES (1), (2)'); 63 $stmt = $db->query('SELECT * FROM test ORDER BY id ASC'); 74 $db->exec('DROP TABLE IF EXISTS test'); 81 $db->exec('DROP TABLE IF EXISTS test'); 85 exec('DROP TABLE IF EXISTS test') 86 exec('CREATE TABLE test(id INT)') 87 exec('INSERT INTO test(id) VALUES (1), (2)') 88 query('SELECT * FROM test ORDER BY id ASC') [all …]
|