/PHP-5.4/ext/standard/tests/math/ |
H A D | lcg_value_basic.phpt | 2 Maths test for xapic versions of lcg_value() 6 echo "MATHS test script started\n"; 40 echo "MATHS test script completed\n"; 45 MATHS test script started 53 MATHS test script completed
|
/PHP-5.4/ext/standard/tests/strings/ |
H A D | htmlentities17.phpt | 2 htmlentities() / html_entity_decode() #8592 - #9002 table test 18 foreach ($tests as $test) { 19 var_dump(htmlentities(pack('H*', $test[2]), ENT_QUOTES, 'UTF-8')); 22 foreach ($tests as $test) { 23 list(,$result) = unpack('H6', html_entity_decode($test[1], ENT_QUOTES, 'UTF-8'));
|
/PHP-5.4/ext/pdo/tests/ |
H A D | pdo_033.phpt | 23 @$db->exec("DROP TABLE test"); 25 $db->query("CREATE TABLE test (t char($len))"); 26 $db->query("INSERT INTO test (t) VALUES($quoted)"); 28 $stmt = $db->prepare('SELECT * from test'); 33 $db->exec("DROP TABLE test");
|
H A D | pdo_022.phpt | 5 die('skip this feature is not yet finalized, no test makes sense'); 16 * this test file. 18 * test file. 27 $db->exec('CREATE TABLE test(id INT NOT NULL PRIMARY KEY, val VARCHAR(10), val2 VARCHAR(16))'); 28 $db->exec('insert2', "INSERT INTO test VALUES(:first, :second, :third)"); 41 $stmt = $db->prepare("INSERT INTO test VALUES(?, ?, ?)"); 47 $select = $db->query('SELECT id, val, val2 FROM test'); 56 $select = $db->query('SELECT COUNT(*) FROM test');
|
/PHP-5.4/ext/curl/tests/ |
H A D | curl_write_file.phpt | 7 Writes the value 'test' to a temporary file. Use curl to access this file and store the output in a… 13 $test_file = tempnam(sys_get_temp_dir(), 'php-curl-test'); 14 $log_file = tempnam(sys_get_temp_dir(), 'php-curl-test'); 17 fwrite($fp, "test"); 38 test
|
H A D | curl_setopt_array_basic.phpt | 21 $url = "{$host}/get.php?test=get"; 23 // Create a temporary file for the test 26 // add the test data to the file 30 // Start the test 31 echo '== Starting test curl_setopt_array($ch, $options); ==' . "\n"; 53 == Starting test curl_setopt_array($ch, $options); ==
|
/PHP-5.4/tests/security/ |
H A D | open_basedir.inc | 64 var_dump(mkdir($directory."/test")); 65 var_dump(mkdir($directory."/test/ok")); 66 var_dump(mkdir($directory."/test/bad")); 67 file_put_contents($directory."/test/ok/ok.txt", "Hello World!"); 72 $directory = (getcwd()."/test"); 85 var_dump($function($directory."/test/bad/bad.txt")); 86 var_dump($function($directory."/test/bad/../bad/bad.txt")); 99 var_dump(chdir($directory."/test/ok")); 119 var_dump(is_array($function($directory."/test/ok/ok.txt"))); 133 var_dump($function($directory."/test/ok/ok.txt")); [all …]
|
H A D | open_basedir_readlink.phpt | 19 $target = ($initdir."/test/bad/bad.txt"); 20 $symlink = ($initdir."/test/ok/symlink.txt"); 23 chdir($initdir."/test/ok"); 29 var_dump(readlink($initdir."/test/ok/symlink.txt")); 31 $target = ($initdir."/test/ok/ok.txt"); 32 $symlink = ($initdir."/test/ok/symlink.txt"); 64 Warning: readlink(): open_basedir restriction in effect. File(%s/test/ok/symlink.txt) is not within… 67 Warning: symlink(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the… 70 Warning: readlink(): open_basedir restriction in effect. File(%s/test/ok/symlink.txt) is not within…
|
/PHP-5.4/ext/standard/tests/file/ |
H A D | realpath_basic3.phpt | 13 mkdir("$file_path/realpath_basic/home/test/", 0777, true); 15 $file_handle1 = fopen("$file_path/realpath_basic/home/test/realpath_basic.tmp", "w"); 27 "./realpath_basic//home/test//../test/./realpath_basic.tmp", 34 ".///realpath_basic/home//..//././test//realpath_basic.tmp", 35 "./realpath_basic/home/../home/../test/..realpath_basic.tmp" 54 unlink("$name_prefix/home/test/realpath_basic.tmp"); 57 rmdir("$name_prefix/home/test/");
|
/PHP-5.4/ext/reflection/tests/ |
H A D | bug40431.phpt | 6 echo "=== 1st test ===\n"; 19 echo "=== 2nd test ===\n"; 39 echo "=== 3rd test ===\n"; 56 echo "=== 4th test ===\n"; 80 === 1st test === 94 === 2nd test === 108 === 3rd test === 122 === 4th test ===
|
/PHP-5.4/Zend/tests/traits/bugs/ |
H A D | abstract-methods04.phpt | 23 $test = new TraitsTest1(); 24 $test->hello(); 31 $test = new TraitsTest2(); 32 $test->hello();
|
/PHP-5.4/Zend/tests/ |
H A D | xor_002.phpt | 15 $s1 = "test"; 19 $s1 = "test"; 23 $s1 = "test long"; 27 $s ^= "test long";
|
H A D | 023.phpt | 8 print $$b('test'); 19 public function test() { 25 function test() { 29 $a = 'test';
|
H A D | argument_restriction_003.phpt | 9 …public function test(Foo $foo, array $bar, $option = NULL, $extra = "lllllllllllllllllllllllllllll… 14 public function test() { 19 Strict Standards: Declaration of Sub::test() should be compatible with Base::test(Foo $foo, array $…
|
H A D | get_class_methods_001.phpt | 15 static public function test() { 26 B::test(); 36 string(4) "test" 50 string(4) "test"
|
H A D | bug38211.phpt | 5 $test = 'test'; 6 unset($$test);
|
/PHP-5.4/ext/gd/tests/ |
H A D | createfromgd2.phpt | 12 echo 'test create from gd2: '; 17 echo 'test create from gd2 part: '; 22 test create from gd2: ok 23 test create from gd2 part: ok
|
/PHP-5.4/ext/mysql/tests/ |
H A D | mysql_affected_rows.phpt | 33 if (!mysql_query('DROP TABLE IF EXISTS test', $link)) 39 if (!mysql_query("INSERT INTO test(id, label) VALUES (1, 'a')", $link)) 46 @mysql_query("INSERT INTO test(id, label) VALUES (1, 'a')", $link); 62 if (!mysql_query("INSERT IGNORE INTO test(id, label) VALUES (1, 'a')", $link)) { 69 if (!mysql_query("INSERT INTO test(id, label) SELECT id + 10, label FROM test", $link)) 75 if (!mysql_query("REPLACE INTO test(id, label) values (4, 'd')", $link)) 81 if (!mysql_query("REPLACE INTO test(id, label) values (5, 'e')", $link)) 87 if (!mysql_query("UPDATE test SET label = 'a' WHERE id = 2", $link)) 93 if (!mysql_query("UPDATE test SET label = 'a' WHERE id = 2", $link)) { 100 if (!mysql_query("UPDATE test SET label = 'a' WHERE id = 100", $link)) { [all …]
|
/PHP-5.4/ext/pcre/ |
H A D | config0.m4 | 12 if test "$PHP_PCRE_REGEX" != "yes" && test "$PHP_PCRE_REGEX" != "no"; then 15 test -f $i/pcre.h && PCRE_INCDIR=$i 18 if test -z "$PCRE_INCDIR"; then 25 test -f $j/libpcre.a || test -f $j/libpcre.$SHLIB_SUFFIX_NAME && PCRE_LIBDIR=$j 28 if test -z "$PCRE_LIBDIR" ; then 38 if test "$pcre_minor_length" -eq 2 ; then 42 if test "$pcre_version" -lt 660; then
|
/PHP-5.4/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_prepare_native_placeholder_everywhere.phpt | 17 printf("[002] Unable to switch on emulated prepared statements, test will fail\n"); 19 $db->exec('DROP TABLE IF EXISTS test'); 20 $db->exec(sprintf('CREATE TABLE test(id INT, label CHAR(255)) ENGINE=%s', PDO_MYSQL_TEST_ENGINE)); 21 $db->exec("INSERT INTO test(id, label) VALUES (1, 'row1')"); 23 $stmt = $db->prepare('SELECT ?, id, label FROM test WHERE ? = ? ORDER BY id ASC'); 35 printf("[004] Unable to switch off emulated prepared statements, test will fail\n"); 37 $stmt = $db->prepare('SELECT ?, id, label FROM test WHERE ? = ? ORDER BY id ASC'); 49 // convert to int for the test output... 66 $db->exec('DROP TABLE IF EXISTS test');
|
/PHP-5.4/sapi/cgi/tests/ |
H A D | 008.phpt | 13 $filename = dirname(__FILE__)."/008.test.php"; 16 $test = "var"; //var 17 /* test class */ 18 class test { 27 $o = new test; 45 …test </span><span style="color: #007700">= </span><span style="color: #DD0000">"var"</sp…
|
/PHP-5.4/ext/phar/tests/ |
H A D | phar_setalias2.phpt | 23 $phar->setAlias('test'); 28 $phar->setAlias('test'); 33 $b = new Phar(dirname(__FILE__) . '/nope.phar', 0, 'test'); 48 test 49 alias "test" is already used for archive "%sphar_setalias2.phar.php" and cannot be used for other a… 50 alias "test" is already used for archive "%sphar_setalias2.phar.php" cannot be overloaded with "%sn…
|
/PHP-5.4/ext/dom/tests/ |
H A D | DOMDocument_standalone_basic.phpt | 22 $test = $dom->standalone; 24 var_dump( $test ); 27 $test = $dom->standalone; 29 var_dump( $test ); 31 $test = $dom->saveXML(); 33 var_dump( $test );
|
H A D | DOMDocument_resolveExternals_basic.phpt | 23 $test = $dom->resolveExternals; 25 var_dump( $test ); 28 $test = $dom->resolveExternals; 30 var_dump( $test ); 37 $test = $dom->saveXML(); 38 var_dump( $test );
|
/PHP-5.4/ext/sqlite3/tests/ |
H A D | sqlite3_35_stmt_readonly.phpt | 17 var_dump($db->exec('CREATE TABLE test (time INTEGER, id STRING)')); 20 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'a')")); 21 var_dump($db->exec("INSERT INTO test (time, id) VALUES (" . TIMENOW . ", 'b')")); 24 $stmt = $db->prepare("SELECT * FROM test WHERE id = ? ORDER BY id ASC"); 28 $stmt = $db->prepare("UPDATE test SET id = 'c' WHERE id = ?"); 32 $stmt = $db->prepare("DELETE FROM test");
|