/php-src/ext/standard/tests/file/ |
H A D | bug53241.phpt | 12 $fn = __DIR__ . "/test.tmp"; 13 @unlink($fn); 14 $fh = fopen($fn, 'xb'); 21 $fn = __DIR__ . "/test.tmp"; 22 @unlink($fn);
|
H A D | ftruncate_bug76422.phpt | 16 $fn = __DIR__ . DIRECTORY_SEPARATOR . "test76422"; 18 $file_handle = fopen($fn,'cb'); 31 unlink($fn); 43 unlink($fn); 48 var_dump(filesize($fn) >= $truncate_offset); 49 unlink($fn); 53 $fn = __DIR__ . "/test76422"; 54 @unlink($fn);
|
/php-src/ext/standard/tests/file/windows_mb_path/ |
H A D | test_cp874_1.phpt | 29 $fn = __DIR__ . DIRECTORY_SEPARATOR . $item; 31 var_dump($fn); 32 var_dump(touch($fn)); 33 var_dump(file_exists($fn)); 34 system("dir /b " . $fn);
|
H A D | test_cp1252_0.phpt | 28 $fn = $prefix . DIRECTORY_SEPARATOR . $item; 30 var_dump($fn); 31 var_dump(touch($fn)); 32 var_dump(file_exists($fn)); 33 system("dir /b " . $fn);
|
H A D | test_cp1254_to_utf8_3.phpt | 26 $fn = $prefix . DIRECTORY_SEPARATOR . $item; 28 var_dump($fn); 29 var_dump(touch($fn)); 30 var_dump(file_exists($fn)); 31 system("dir /b \"" . $fn . "\"");
|
H A D | test_cp1254_3.phpt | 29 $fn = $prefix . DIRECTORY_SEPARATOR . $item; 31 var_dump($fn); 32 var_dump(touch($fn)); 33 var_dump(file_exists($fn)); 34 system("dir /b \"" . $fn . "\"");
|
H A D | test_cp932_3.phpt | 29 $fn = $prefix . DIRECTORY_SEPARATOR . $item; 31 var_dump($fn); 32 var_dump(touch($fn)); 33 var_dump(file_exists($fn)); 34 system("dir /b " . $fn);
|
H A D | test_big5_to_utf8_2.phpt | 25 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}25"; 27 $f = fopen($fn, 'w'); 35 var_dump(file_get_contents($fn)); 37 get_basename_with_cp($fn, 65001); 39 var_dump(unlink($fn));
|
H A D | test_cp1251_2.phpt | 28 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}7"; 30 $f = fopen($fn, 'w'); 38 var_dump(file_get_contents($fn)); 40 get_basename_with_cp($fn, 1251); 42 var_dump(unlink($fn));
|
H A D | test_cp1251_to_utf8_2.phpt | 25 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}7"; 27 $f = fopen($fn, 'w'); 35 var_dump(file_get_contents($fn)); 37 get_basename_with_cp($fn, 65001); 39 var_dump(unlink($fn));
|
H A D | test_cp936_to_utf8_2.phpt | 25 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}25"; 27 $f = fopen($fn, 'w'); 35 var_dump(file_get_contents($fn)); 37 get_basename_with_cp($fn, 65001); 39 var_dump(unlink($fn));
|
H A D | test_big5_2.phpt | 28 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}25"; 30 $f = fopen($fn, 'w'); 38 var_dump(file_get_contents($fn)); 40 get_basename_with_cp($fn, 950); 42 var_dump(unlink($fn));
|
H A D | test_cp1251_zend_multibyte_2.phpt | 30 $fn = $prefix . DIRECTORY_SEPARATOR . $item; 32 $f = fopen($fn, 'w'); 40 var_dump(file_get_contents($fn)); 42 get_basename_with_cp($fn, 65001); 44 var_dump(unlink($fn));
|
H A D | test_cp1252_to_utf8_2.phpt | 25 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}7"; 27 $f = fopen($fn, 'w'); 35 var_dump(file_get_contents($fn)); 37 get_basename_with_cp($fn, 65001); 39 var_dump(unlink($fn));
|
H A D | test_cp1252_to_utf8_5.phpt | 25 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}7"; 27 $f = fopen($fn, 'w'); 35 var_dump(file_get_contents($fn)); 37 get_basename_with_cp($fn, 65001); 39 var_dump(unlink($fn));
|
H A D | test_cp936_2.phpt | 28 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}25"; 30 $f = fopen($fn, 'w'); 38 var_dump(file_get_contents($fn)); 40 get_basename_with_cp($fn, 936); 42 var_dump(unlink($fn));
|
/php-src/ext/session/tests/user_session_module/ |
H A D | gh7787.phpt | 61 fn() => true, 62 fn() => true, 63 fn() => 'foo|s:3:"foo";', 64 fn() => false, 65 fn() => true, 66 fn() => true, 67 fn() => sha1(random_bytes(32)), 68 fn() => true, 69 fn() => false,
|
/php-src/ext/date/tests/ |
H A D | DateTimeZone_uninitialised_exceptions.phpt | 35 check(fn() => serialize($mdtz)); 36 check(fn() => timezone_name_get($mdtz)); 37 check(fn() => $mdtz->getName()); 38 check(fn() => timezone_offset_get($mdtz, $dt)); 39 check(fn() => $mdtz->getOffset($dt)); 40 check(fn() => timezone_offset_get($dtz, $mdt)); 41 check(fn() => $dtz->getOffset($mdt)); 42 check(fn() => timezone_transitions_get($mdtz, time())); 43 check(fn() => $mdtz->getTransitions(time())); 44 check(fn() => timezone_location_get($mdtz,)); [all …]
|
/php-src/Zend/tests/attributes/ |
H A D | gh8421.phpt | 12 fn() => true; 14 static fn() => true; 21 fn() => true; 27 static fn() => true; 33 fn() => true; 39 static fn() => true;
|
/php-src/sapi/cgi/tests/ |
H A D | bug75574_utf8.phpt | 19 $fn = __DIR__ . DIRECTORY_SEPARATOR . md5(uniqid()); 20 file_put_contents($fn, "<?php\nvar_dump(putenv('FOO=啊'));\n//var_dump(`echo %FOO%`);\nvar_dump(gete… 22 echo shell_exec("$php -n -f $fn"); 24 unlink($fn);
|
/php-src/Zend/tests/arrow_functions/ |
H A D | 007.phpt | 11 assert((fn() => false)()); 17 assert((fn&(int... $args): ?bool => $args[0])(false)); 24 assert(): assert(fn() => false()) failed 25 assert(): assert(fn&(int ...$args): ?bool => $args[0](false)) failed
|
H A D | 004.phpt | 8 $fn = fn() => $GLOBALS['a']; 9 var_dump($fn());
|
/php-src/ext/simplexml/tests/ |
H A D | bug55098.phpt | 20 test($nodes, "asXml", fn ($n) => $n->asXml()); 21 test($nodes, "attributes", fn ($n) => $n->attributes()); 22 test($nodes, "children", fn ($n) => $n->children()); 23 test($nodes, "getNamespaces", fn ($n) => $n->getNamespaces()); 24 test($nodes, "xpath", fn ($n) => $n->xpath("/root/a/b")); 25 test($nodes, "var_dump", fn ($n) => var_dump($n));
|
/php-src/ext/gmp/tests/ |
H A D | bug81119.phpt | 16 test(fn($WRONG_SCOPE_1 = 0, $WRONG_SCOPE_2 = 0) => gmp_init(1) < "x"); 17 test(fn($WRONG_SCOPE_1 = 0, $WRONG_SCOPE_2 = 0) => gmp_init(1) < []); 18 test(fn($WRONG_SCOPE_1 = 0, $WRONG_SCOPE_2 = 0) => gmp_init(1) + "x"); 19 test(fn($WRONG_SCOPE_1 = 0, $WRONG_SCOPE_2 = 0) => gmp_init(1) + []);
|
/php-src/sapi/litespeed/ |
H A D | lsapilib.h | 158 LSAPI_CB_EnvHandler fn, void * arg ); 161 LSAPI_CB_EnvHandler fn, void * arg ); 164 LSAPI_CB_EnvHandler fn, void * arg ); 167 LSAPI_CB_EnvHandler fn, void * arg ); 282 static inline int LSAPI_ForeachHeader( LSAPI_CB_EnvHandler fn, void * arg ) in LSAPI_ForeachHeader() argument 283 { return LSAPI_ForeachHeader_r( &g_req, fn, arg ); } in LSAPI_ForeachHeader() 286 LSAPI_CB_EnvHandler fn, void * arg ) in LSAPI_ForeachOrgHeader() argument 287 { return LSAPI_ForeachOrgHeader_r( &g_req, fn, arg ); } in LSAPI_ForeachOrgHeader() 289 static inline int LSAPI_ForeachEnv( LSAPI_CB_EnvHandler fn, void * arg ) in LSAPI_ForeachEnv() argument 290 { return LSAPI_ForeachEnv_r( &g_req, fn, arg ); } in LSAPI_ForeachEnv() [all …]
|