/php-src/tests/classes/ |
H A D | private_members.phpt | 14 $this->test(); 18 function test() 39 function test() 48 $t->test(); 57 base::test 63 derived::test 70 base::test 76 base::test 82 derived::test 89 base::test [all …]
|
/php-src/ext/standard/tests/crypt/ |
H A D | bcrypt_invalid_cost.phpt | 5 var_dump(crypt("test", "$2a$4$1234567891234567891234567")); 6 var_dump(crypt("test", "$2a$00$1234567891234567891234567")); 7 var_dump(crypt("test", "$2a$01$1234567891234567891234567")); 8 var_dump(crypt("test", "$2a$02$1234567891234567891234567")); 9 var_dump(crypt("test", "$2a$03$1234567891234567891234567")); 10 var_dump(crypt("test", "$2a$32$1234567891234567891234567")); 11 var_dump(crypt("test", "$2a$40$1234567891234567891234567"));
|
/php-src/Zend/tests/ |
H A D | bug63462.phpt | 37 $test = new Test(); 39 $test->nonExisting; 40 $test->publicProperty; 41 $test->protectedProperty; 42 $test->privateProperty; 43 isset($test->nonExisting); 44 isset($test->publicProperty); 45 isset($test->protectedProperty); 46 isset($test->privateProperty); 47 $test->nonExisting = 'value'; [all …]
|
H A D | bug73916.phpt | 8 $test[] =& $a; 9 $test[] =& $b; 10 test($test); 11 function test() { 16 #0 %s(%d): test(Array)
|
H A D | gh12826.phpt | 5 $test = array( 12 unset($test['a']); 13 unset($test['b']); 15 foreach($test as $k => &$v) { // Mind the reference! 18 foreach($test as $kk => $vv) { 19 echo $test[$kk]; 20 if ($kk == $k) $test[$kk] = 0;
|
H A D | call_user_func_008.phpt | 6 function test(&$ref1, &$ref2) { 13 var_dump(call_user_func('test', $i, $j)); 16 var_dump(call_user_func_array('test', [$i, $j])); 20 var_dump(call_user_func('test', $i, $j)); 23 var_dump(call_user_func_array('test', [$i, $j])); 28 Warning: test(): Argument #1 ($ref1) must be passed by reference, value given in %s on line %d 30 Warning: test(): Argument #2 ($ref2) must be passed by reference, value given in %s on line %d 35 Warning: test(): Argument #1 ($ref1) must be passed by reference, value given in %s on line %d 37 Warning: test(): Argument #2 ($ref2) must be passed by reference, value given in %s on line %d 42 Warning: test(): Argument #1 ($ref1) must be passed by reference, value given in %s on line %d [all …]
|
/php-src/ext/phar/tests/cache_list/files/ |
H A D | write3.phar | 3 var_dump(file_exists("phar://" . __FILE__ . "/test"), is_dir("phar://" . __FILE__ . "/test")); 4 rmdir("phar://" . __FILE__ . "/test"); 6 var_dump(file_exists("phar://" . __FILE__ . "/test"), is_dir("phar://" . __FILE__ . "/test")); 9 i s:2:"hi";test.txt���Hzzo� s:2:"hi";test/���H…
|
/php-src/ext/standard/tests/strings/ |
H A D | bug23894_32bit.phpt | 5 if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only"); 10 $test = sprintf("%04d", $a); 11 var_dump($test, bin2hex($test)); 12 $test = sprintf("% 13u", $a); 13 var_dump($test, bin2hex($test));
|
H A D | bug23894_64bit.phpt | 5 if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); 10 $test = sprintf("%04d", $a); 11 var_dump($test, bin2hex($test)); 12 $test = sprintf("% 13u", $a); 13 var_dump($test, bin2hex($test));
|
/php-src/ext/standard/tests/file/windows_links/ |
H A D | readlink_compat.phpt | 8 die('skip windows only test'); 27 chdir($tmpDir . '\\test'); 37 $target = $tmpDir . '\\test\\directory'; 44 $target = $tmpDir . '\\test\\directory'; 74 rmdir($tmpDir . '\\test\\directory'); 75 rmdir($tmpDir . '\\test'); 81 string(%d) "%s\mnt\test\directory" 82 string(%d) "%s\mnt\test\directory" 83 string(%d) "%s\mnt\test\directory" 84 string(%d) "%s\mnt\test\directory\a.php" [all …]
|
H A D | bug48746_1.phpt | 8 die('skip windows only test'); 22 $dirname = __DIR__ . "\\mnt\\test\\directory"; 24 chdir(__DIR__ . "\\mnt\\test"); 34 require "$fullpath\\mnt\\test\\directory\\b.php"; 36 require_once "$fullpath\\mnt\\test\\mklink_junction\\c.php"; 40 unlink("$fullpath\\mnt\\test\\directory\\b.php"); 41 unlink("$fullpath\\mnt\\test\\mklink_junction\\c.php"); 44 rmdir(__DIR__ . "\\mnt\\test\\directory"); 45 rmdir(__DIR__ . "\\mnt\\test\\mklink_junction"); 46 rmdir(__DIR__ . "\\mnt\\test\\mounted_volume"); [all …]
|
/php-src/Zend/tests/arg_unpack/ |
H A D | basic.phpt | 6 function test(...$args) { 26 test(...[]); 27 test(...[1, 2, 3]); 28 test(...$array); 29 test(...getArray([1, 2, 3])); 30 test(...arrayGen([])); 31 test(...arrayGen([1, 2, 3])); 33 test(1, ...[2, 3], ...[4, 5]); 34 test(1, ...getArray([2, 3]), ...arrayGen([4, 5]));
|
/php-src/ext/spl/tests/ |
H A D | gh11338.phpt | 6 function test($path) { 13 test('/dir/anotherdir/basedir//'); 14 test('/dir/anotherdir/basedir/'); 15 test('/dir/anotherdir/basedir'); 16 test('/dir/anotherdir//basedir'); 17 test('///'); 18 test('//'); 19 test('/'); 20 test('');
|
/php-src/ext/filter/tests/ |
H A D | bug50158.phpt | 8 $email_address = "test=mail@example.com"; 11 $email_address = "test-mail@example.com"; 14 $email_address = "test+mail@example.com"; 17 $email_address = "test?mail@example.com"; 22 string(21) "test=mail@example.com" 23 string(21) "test-mail@example.com" 24 string(21) "test+mail@example.com" 25 string(21) "test?mail@example.com"
|
/php-src/ext/standard/tests/general_functions/ |
H A D | settype_typed_property.phpt | 10 $test = new Test; 11 $test->x = 42; 12 settype($test->x, 'string'); 13 // Same as $test->x = (string) $test->x. 15 var_dump($test->x); 18 settype($test->x, 'array'); 22 var_dump($test->x);
|
H A D | var_export_basic5.phpt | 19 "array(\"test\" => \"is_array\")" => array("test" => "is_array"), 23 "array(\"string\", \"test\")" => array("string", "test"), 24 "array('string', 'test')" => array('string', 'test') 193 'test' => 'is_array', 196 'test' => 'is_array', 245 1 => 'test', 249 1 => 'test', 253 1 => 'test', 260 1 => 'test', 264 1 => 'test', [all …]
|
/php-src/ext/dom/tests/ |
H A D | DOMElement_getAttributeNames.phpt | 8 function test($str) { 17 test('<html xmlns:some="some:ns" some:test="a" test2="b"/>'); 18 test('<html test="b" test3="c"/>'); 19 test('<html/>'); 27 string(9) "some:test" 33 string(4) "test"
|
H A D | gh12616_2.phpt | 11 <container xmlns:test="urn:test" xmlns:symfony="http://symfony.com/schema/dic/services"> 13 <test:service id="hello" /> 21 $xpath->registerNamespace('test', 'urn:test'); 25 $result = $xpath->query('//container/services/test:service[@id="hello"]'); 31 <container xmlns:test="urn:test"> 33 <test:service id="hello"/>
|
H A D | bug80332_2.phpt | 13 function test($list, $key) { 23 test($list, 0); 24 test($list, false); 25 test($list, true); 26 test($list, null); 27 test($list, '0'); 28 test($list, '0.5'); 29 test($list, '1'); 31 test($list, 'attr2'); 32 test($list, 'hi'); [all …]
|
/php-src/ext/mysqli/tests/ |
H A D | 001.phpt | 16 $test = ""; 18 /*** test mysqli_connect localhost:port ***/ 20 $test .= ($link) ? "1" : "0"; 23 /*** test mysqli_real_connect ***/ 25 $test.= (my_mysqli_real_connect($link, $host, $user, $passwd, "", $port, $socket) ) 29 /*** test mysqli_real_connect with db ***/ 31 $test .= (my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)) 35 /*** test mysqli_real_connect with port ***/ 37 $test .= (my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)) 52 /*** test mysqli_real_connect compressed ***/ [all …]
|
/php-src/ext/opcache/tests/jit/ |
H A D | undef_to_typed_ref.phpt | 14 $test = new Test; 15 $test->x = ""; 16 $r =& $test->x; 21 $test = new Test; 22 $test->x = ""; 23 $r =& $test->x; 28 $test = new Test; 29 $test->x = ""; 36 $test->x = ""; 43 $test->x = ""; [all …]
|
/php-src/ext/json/tests/ |
H A D | bug61978.phpt | 7 public $test; 10 $this->test = '123'; 16 public $test; 18 $this->test = '123'; 22 'test' => $this->test, 39 string(24) "{"test":"123","me":null}" 41 string(24) "{"test":"123","me":null}"
|
/php-src/ext/dba/ |
H A D | config.m4 | 18 if test -n "$THIS_PREFIX" && test "$THIS_PREFIX" != "/usr"; then 26 if test -z "$THIS_INCLUDE"; then 29 if test -z "$THIS_LIBS"; then 44 if test -n "$2"; then 50 if test -n "$3"; then 53 if test "$THIS_RESULT" = "yes" || test "$THIS_RESULT" = "builtin"; then 326 if test -z "$THIS_LIBS"; then 330 if test "$1" = "4"; then 472 if test "$HAVE_DB3" = "1" || test "$HAVE_DB4" = "1"; then 518 if test "$HAVE_DB4" = "1" || test "$HAVE_DB3" = "1" || test "$HAVE_DB2" = "1"; then [all …]
|
/php-src/ext/ffi/tests/ |
H A D | 021.phpt | 9 function test($size, $type) { 15 test(4, "enum {a1, b1}"); 16 test(1, "enum __attribute__((packed)) {a2, b2}"); 18 test(4, "enum {a3=0, b3=0x80000000}"); 19 test(8, "enum {a4=-1, b4=0x80000000}"); 20 test(8, "enum {a5=0x80000000, b5=-1}"); 21 test(4, "enum {a6=-1, b6=0x7fffffff}"); 22 test(8, "enum {a7=-1, b7=0x7fffffff, c7}"); 24 test(1, "enum __attribute__((packed)) {a8=0, b8=0xff}"); 48 test(1, "enum __attribute__((packed)) {a14=-0x80}"); [all …]
|
/php-src/ext/gd/tests/ |
H A D | bug53504.phpt | 24 // Kerning examples (unfortunately not available in "Tuffy" test font): 52 // "Big" test: 56 foreach ($tests as $testnum => $test) { 57 $bbox = imageftbbox($test['fontSize'], $test['angle'], $font, $test['text']); 60 $exp = $test['exp'][$i]; 69 $bboxDrawn = imagefttext($g, $test['fontSize'], $test['angle'], 70 $test['x'], $test['y'], $black, $font, $test['text']); 74 if ($bbox[$i] + $test['x'] !== $bboxDrawn[$i]) echo "imageftbbox and imagefttext differ!\n"; 83 imageline($g, $test['x'], $test['y'], 84 $test['x'] + (int)($width * cos(deg2rad($test['angle']))), [all …]
|