/php-src/ext/date/tests/ |
H A D | DatePeriod_uninitialised_exceptions.phpt | 25 check(fn() => serialize($mdp)); 26 check(fn() => $mdp->getStartDate()); 27 check(fn() => $mdp->getDateInterval()); 36 check(fn() => $mdp->getEndDate()); 37 check(fn() => $mdp->getRecurrences());
|
/php-src/Zend/tests/ |
H A D | call_to_deprecated_function_args.phpt | 26 $fn = 'zend_test_deprecated'; 27 $fn(new stdClass); 34 $fn = 'zend_test_deprecated'; 35 $ret = $fn(new stdClass);
|
H A D | gh7900.phpt | 9 $x = fn(): never => throw new \Exception('Here'); 18 assert((fn(): never => 42) && false); 26 assert(fn(): never => 42 && false)
|
H A D | closure_061.phpt | 82 foreach ($tests as list($fn, $bindings)) { 83 if (is_array($fn)) { 84 $r = new ReflectionMethod($fn[0], $fn[1]); 85 $c = $r->getClosure(is_object($fn[0]) ? $fn[0] : null); 86 $fnStr = is_object($fn[0]) ? "(new " . get_class($fn[0]) . ")->$fn[1]" : "$fn[0]::$fn[1]"; 88 $c = (new ReflectionFunction($fn))->getClosure(); 89 $fnStr = $fn; 91 if ($fn instanceof Closure) {
|
H A D | first_class_callable_015.phpt | 13 $fn = test(...); 14 do_weak_call($fn); 16 do_strict_call($fn);
|
H A D | first_class_callable_015_weak.inc | 3 function do_weak_call(Closure $fn) { 4 $fn("42");
|
H A D | first_class_callable_015_strict.inc | 3 function do_strict_call(Closure $fn) { 4 $fn("42");
|
H A D | first_class_callable_refs.phpt | 10 $fn = id(...); 12 $i2 =& $fn($i);
|
/php-src/ext/standard/tests/file/windows_links/ |
H A D | bug76335.phpt | 15 $fn = __DIR__ . DIRECTORY_SEPARATOR . "file"; 23 file_put_contents($fn, ""); 38 $fn = __DIR__ . DIRECTORY_SEPARATOR . "file"; 45 unlink($fn);
|
/php-src/ext/fileinfo/libmagic/ |
H A D | apptype.c | 45 file_os2_apptype(struct magic_set *ms, const char *fn, const void *buf, in file_os2_apptype() argument 54 if (fn) in file_os2_apptype() 55 filename = strdup(fn); in file_os2_apptype() 67 if (fn == NULL) { in file_os2_apptype() 82 if (fn == NULL) { in file_os2_apptype()
|
H A D | fsmagic.c | 90 file_fsmagic(struct magic_set *ms, const char *fn, zend_stat_t *sb) in file_fsmagic() argument 96 if (fn == NULL) in file_fsmagic() 100 ret = php_sys_stat(fn, sb); in file_fsmagic() 104 file_error(ms, errno, "cannot stat `%s'", fn); in file_fsmagic() 108 fn, strerror(errno)) == -1) in file_fsmagic() 196 file_error(ms, errno, "unreadable symlink `%s'", fn); in file_fsmagic()
|
/php-src/ext/mysqlnd/ |
H A D | mysqlnd_alloc.c | 204 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_efree() local 205 TRACE_ALLOC_INF_FMT("file=%-15s line=%4d", fn? fn + 1:__zend_filename, __zend_lineno); in _mysqlnd_efree() 235 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_pefree() local 236 TRACE_ALLOC_INF_FMT("file=%-15s line=%4d", fn? fn + 1:__zend_filename, __zend_lineno); in _mysqlnd_pefree() 267 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_pememdup() local 268 TRACE_ALLOC_INF_FMT("file=%-15s line=%4d", fn? fn + 1:__zend_filename, __zend_lineno); in _mysqlnd_pememdup() 298 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_pestrndup() local 299 TRACE_ALLOC_INF_FMT("file=%-15s line=%4d", fn? fn + 1:__zend_filename, __zend_lineno); in _mysqlnd_pestrndup() 340 char * fn = strrchr(__zend_filename, PHP_DIR_SEPARATOR); in _mysqlnd_pestrdup() local 341 TRACE_ALLOC_INF_FMT("file=%-15s line=%4d", fn? fn + 1:__zend_filename, __zend_lineno); in _mysqlnd_pestrdup()
|
/php-src/ext/standard/tests/file/windows_mb_path/ |
H A D | test_cp1253_2.phpt | 28 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}33"; 30 $f = fopen($fn, 'w'); 38 var_dump(file_get_contents($fn)); 40 get_basename_with_cp($fn, 1253);
|
H A D | test_cp1253_to_utf8_2.phpt | 25 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}33"; 27 $f = fopen($fn, 'w'); 35 var_dump(file_get_contents($fn)); 37 get_basename_with_cp($fn, 65001);
|
H A D | test_cp1255_2.phpt | 28 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}33"; 30 $f = fopen($fn, 'w'); 38 var_dump(file_get_contents($fn)); 40 get_basename_with_cp($fn, 1255);
|
H A D | test_cp1255_to_utf8_2.phpt | 25 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}33"; 27 $f = fopen($fn, 'w'); 35 var_dump(file_get_contents($fn)); 37 get_basename_with_cp($fn, 65001);
|
H A D | test_cp1256_to_utf8_2.phpt | 25 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}33"; 27 $f = fopen($fn, 'w'); 35 var_dump(file_get_contents($fn)); 37 get_basename_with_cp($fn, 65001);
|
H A D | test_eucjp_to_utf8_2.phpt | 25 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}33"; 27 $f = fopen($fn, 'w'); 35 var_dump(file_get_contents($fn)); 37 get_basename_with_cp($fn, 65001);
|
H A D | test_kartuli_utf8_2.phpt | 25 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}33"; 27 $f = fopen($fn, 'w'); 35 var_dump(file_get_contents($fn)); 37 get_basename_with_cp($fn, 65001);
|
H A D | test_cp1250_to_utf8_2.phpt | 25 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}33"; 27 $f = fopen($fn, 'w'); 35 var_dump(file_get_contents($fn)); 37 get_basename_with_cp($fn, 65001);
|
H A D | test_cp1254_to_utf8_2.phpt | 25 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}33"; 27 $f = fopen($fn, 'w'); 35 var_dump(file_get_contents($fn)); 37 get_basename_with_cp($fn, 65001);
|
H A D | test_cp1256_2.phpt | 28 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}33"; 30 $f = fopen($fn, 'w'); 38 var_dump(file_get_contents($fn)); 40 get_basename_with_cp($fn, 1256);
|
H A D | test_cp1254_2.phpt | 28 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}33"; 30 $f = fopen($fn, 'w'); 38 var_dump(file_get_contents($fn)); 40 get_basename_with_cp($fn, 1254);
|
H A D | test_cp932_to_utf8_2.phpt | 25 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}33"; 27 $f = fopen($fn, 'w'); 35 var_dump(file_get_contents($fn)); 37 get_basename_with_cp($fn, 65001);
|
/php-src/ext/sqlite3/tests/ |
H A D | gh11878.phpt | 13 $this->sqlite->createAggregate("indexes_closure", fn () => 0, fn () => 0, 0); 17 $this->sqlite->createFunction("func_closure", fn () => 0, 0); 19 $this->sqlite->createCollation("collation_closure", fn () => 0);
|