Home
last modified time | relevance | path

Searched refs:fn (Results 51 – 75 of 253) sorted by relevance

1234567891011

/php-src/ext/date/tests/
H A DDatePeriod_uninitialised_exceptions.phpt25 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 Dcall_to_deprecated_function_args.phpt26 $fn = 'zend_test_deprecated';
27 $fn(new stdClass);
34 $fn = 'zend_test_deprecated';
35 $ret = $fn(new stdClass);
H A Dgh7900.phpt9 $x = fn(): never => throw new \Exception('Here');
18 assert((fn(): never => 42) && false);
26 assert(fn(): never => 42 && false)
H A Dclosure_061.phpt82 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 Dfirst_class_callable_015.phpt13 $fn = test(...);
14 do_weak_call($fn);
16 do_strict_call($fn);
H A Dfirst_class_callable_015_weak.inc3 function do_weak_call(Closure $fn) {
4 $fn("42");
H A Dfirst_class_callable_015_strict.inc3 function do_strict_call(Closure $fn) {
4 $fn("42");
H A Dfirst_class_callable_refs.phpt10 $fn = id(...);
12 $i2 =& $fn($i);
/php-src/ext/standard/tests/file/windows_links/
H A Dbug76335.phpt15 $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 Dapptype.c45 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 Dfsmagic.c90 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 Dmysqlnd_alloc.c204 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 Dtest_cp1253_2.phpt28 $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 Dtest_cp1253_to_utf8_2.phpt25 $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 Dtest_cp1255_2.phpt28 $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 Dtest_cp1255_to_utf8_2.phpt25 $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 Dtest_cp1256_to_utf8_2.phpt25 $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 Dtest_eucjp_to_utf8_2.phpt25 $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 Dtest_kartuli_utf8_2.phpt25 $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 Dtest_cp1250_to_utf8_2.phpt25 $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 Dtest_cp1254_to_utf8_2.phpt25 $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 Dtest_cp1256_2.phpt28 $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 Dtest_cp1254_2.phpt28 $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 Dtest_cp932_to_utf8_2.phpt25 $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 Dgh11878.phpt13 $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);

Completed in 37 milliseconds

1234567891011