Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 25 of 137) sorted by relevance

123456

/PHP-7.3/Zend/tests/closures/
H A Dclosure_from_callable_basic.phpt10 echo $fn(" OK".PHP_EOL);
14 echo $fn(" OK".PHP_EOL);
18 echo $fn(" OK".PHP_EOL);
22 echo $fn(" OK".PHP_EOL);
26 echo $fn(" OK".PHP_EOL);
30 echo $fn(" OK".PHP_EOL);
34 echo $fn(" OK".PHP_EOL);
38 echo $fn(" OK".PHP_EOL);
42 echo $fn(" OK".PHP_EOL);
47 echo $fn(" OK".PHP_EOL);
[all …]
H A Dclosure_from_callable_error.phpt10 $fn = Closure::fromCallable(['Foo', 'privateInstanceFunc']);
23 $fn = Closure::fromCallable('Foo::privateInstanceFunc');
83 $fn = Closure::fromCallable('Foo::privateStaticFunction');
95 $fn = Closure::fromCallable('Foo::nonExistentFunction');
107 $fn = Closure::fromCallable(['NonExistentClass', 'foo']);
119 $fn = Closure::fromCallable('thisDoesNotExist');
133 $fn = $subFoo->closePrivateInvalid();
146 $fn = $subFoo->closePrivateStaticInvalid();
158 $fn = functionAccessProtected();
170 $fn = functionAccessPrivate();
[all …]
/PHP-7.3/Zend/tests/variadic/
H A Doptional_params.phpt6 function fn($reqParam, $optParam = null, ...$params) {
10 fn(1);
11 fn(1, 2);
12 fn(1, 2, 3);
13 fn(1, 2, 3, 4);
14 fn(1, 2, 3, 4, 5);
/PHP-7.3/ext/mysqlnd/
H A Dmysqlnd_alloc.c91 TRACE_ALLOC_INF_FMT("file=%-15s line=%4d", fn? fn + 1:__zend_filename, __zend_lineno); in _mysqlnd_emalloc()
131 TRACE_ALLOC_INF_FMT("file=%-15s line=%4d", fn? fn + 1:__zend_filename, __zend_lineno); in _mysqlnd_pemalloc()
174 TRACE_ALLOC_INF_FMT("file=%-15s line=%4d", fn? fn + 1:__zend_filename, __zend_lineno); in _mysqlnd_ecalloc()
214 TRACE_ALLOC_INF_FMT("file=%-15s line=%4d", fn? fn + 1:__zend_filename, __zend_lineno); in _mysqlnd_pecalloc()
258 TRACE_ALLOC_INF_FMT("file=%-15s line=%4d", fn? fn + 1:__zend_filename, __zend_lineno); in _mysqlnd_erealloc()
299 TRACE_ALLOC_INF_FMT("file=%-15s line=%4d", fn? fn + 1:__zend_filename, __zend_lineno); in _mysqlnd_perealloc()
339 TRACE_ALLOC_INF_FMT("file=%-15s line=%4d", fn? fn + 1:__zend_filename, __zend_lineno); in _mysqlnd_efree()
370 TRACE_ALLOC_INF_FMT("file=%-15s line=%4d", fn? fn + 1:__zend_filename, __zend_lineno); in _mysqlnd_pefree()
405 TRACE_ALLOC_INF_FMT("file=%-15s line=%4d", fn? fn + 1:__zend_filename, __zend_lineno); in _mysqlnd_malloc()
444 TRACE_ALLOC_INF_FMT("file=%-15s line=%4d", fn? fn + 1:__zend_filename, __zend_lineno); in _mysqlnd_calloc()
[all …]
/PHP-7.3/ext/standard/tests/file/
H A Dftruncate_bug76803.phpt6 $fn = dirname(__FILE__) . DIRECTORY_SEPARATOR . "test76803";
8 $f = fopen($fn, "w");
13 var_dump(addslashes(file_get_contents($fn)));
15 $f = fopen($fn, "w");
19 var_dump(addslashes(file_get_contents($fn)));
32 $fn = dirname(__FILE__) . DIRECTORY_SEPARATOR . "test76803";
33 unlink($fn);
H A Dftruncate_bug76422.phpt12 $fn = dirname(__FILE__) . DIRECTORY_SEPARATOR . "test76422";
14 $file_handle = fopen($fn,'cb');
28 var_dump(filesize($fn) >= $truncate_offset);
32 $fn = dirname(__FILE__) . "/test76422";
33 unlink($fn);
H A Dbug53241.phpt10 $fn = __DIR__ . "/test.tmp";
11 @unlink($fn);
12 $fh = fopen($fn, 'xb');
18 $fn = __DIR__ . "/test.tmp";
19 @unlink($fn);
/PHP-7.3/ext/zip/lib/
H A Dzip_name_locate.c54 const char *fn, *p; in _zip_name_locate() local
70 fn = _zip_get_name(za, i, flags, error); in _zip_name_locate()
73 if (fn == NULL) in _zip_name_locate()
77 p = strrchr(fn, '/'); in _zip_name_locate()
79 fn = p+1; in _zip_name_locate()
82 if (cmp(fname, fn) == 0) { in _zip_name_locate()
/PHP-7.3/ext/session/tests/
H A Dsave_handler_closures.inc5 foreach (array ('open', 'close', 'read', 'write', 'destroy', 'gc') as $fn) {
6 ${$fn.'_closure'} = function () use ($fn) { return call_user_func_array ($fn, func_get_args ()); };
/PHP-7.3/Zend/tests/arg_unpack/
H A Ddynamic.phpt6 $fn = function(...$args) {
10 $fn(...[]);
11 $fn(...[1, 2, 3]);
12 $fn(1, ...[2, 3], ...[], ...[4, 5]);
/PHP-7.3/Zend/tests/
H A Dclosure_bug66622.phpt8 $fn = function() { return static::name(); };
9 echo static::name() . ' vs ' . $fn() . "\n";
12 $fn = static function() { return static::name(); };
13 echo static::name() . ' vs ' . $fn() . "\n";
16 $fn = function() { return static::name(); };
17 echo static::name() . ' vs ' . $fn() . "\n";
/PHP-7.3/ext/standard/tests/file/windows_mb_path/
H A Dtest_kartuli_utf8_3.phpt24 $fn = $prefix . DIRECTORY_SEPARATOR . $item;
26 var_dump($fn);
27 var_dump(touch($fn));
28 var_dump(file_exists($fn));
29 system("dir /b " . $fn);
H A Dtest_cp874_to_utf8_1.phpt24 $fn = $prefix . DIRECTORY_SEPARATOR . $item;
26 var_dump($fn);
27 var_dump(touch($fn));
28 var_dump(file_exists($fn));
29 system("dir /b " . $fn);
H A Dtest_cp1252_0.phpt26 $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 Dtest_cp1254_to_utf8_3.phpt24 $fn = $prefix . DIRECTORY_SEPARATOR . $item;
26 var_dump($fn);
27 var_dump(touch($fn));
28 var_dump(file_exists($fn));
29 system("dir /b \"" . $fn . "\"");
H A Dtest_cp874_1.phpt27 $fn = dirname(__FILE__) . DIRECTORY_SEPARATOR . $item;
29 var_dump($fn);
30 var_dump(touch($fn));
31 var_dump(file_exists($fn));
32 system("dir /b " . $fn);
H A Dtest_cp1254_3.phpt27 $fn = $prefix . DIRECTORY_SEPARATOR . $item;
29 var_dump($fn);
30 var_dump(touch($fn));
31 var_dump(file_exists($fn));
32 system("dir /b \"" . $fn . "\"");
H A Dtest_cp932_3.phpt27 $fn = $prefix . DIRECTORY_SEPARATOR . $item;
29 var_dump($fn);
30 var_dump(touch($fn));
31 var_dump(file_exists($fn));
32 system("dir /b " . $fn);
H A Dtest_cp1251_2.phpt26 $fn = $prefix . DIRECTORY_SEPARATOR . "${item}7";
28 $f = fopen($fn, 'w');
36 var_dump(file_get_contents($fn));
38 get_basename_with_cp($fn, 1251);
40 var_dump(unlink($fn));
H A Dtest_cp1251_to_utf8_2.phpt23 $fn = $prefix . DIRECTORY_SEPARATOR . "${item}7";
25 $f = fopen($fn, 'w');
33 var_dump(file_get_contents($fn));
35 get_basename_with_cp($fn, 65001);
37 var_dump(unlink($fn));
H A Dtest_cp936_to_utf8_2.phpt23 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}25";
25 $f = fopen($fn, 'w');
33 var_dump(file_get_contents($fn));
35 get_basename_with_cp($fn, 65001);
37 var_dump(unlink($fn));
H A Dtest_big5_to_utf8_2.phpt23 $fn = $prefix . DIRECTORY_SEPARATOR . "{$item}25";
25 $f = fopen($fn, 'w');
33 var_dump(file_get_contents($fn));
35 get_basename_with_cp($fn, 65001);
37 var_dump(unlink($fn));
H A Dtest_cp1252_to_utf8_5.phpt23 $fn = $prefix . DIRECTORY_SEPARATOR . "${item}7";
25 $f = fopen($fn, 'w');
33 var_dump(file_get_contents($fn));
35 get_basename_with_cp($fn, 65001);
37 var_dump(unlink($fn));
H A Dtest_cp1251_zend_multibyte_2.phpt26 $fn = $prefix . DIRECTORY_SEPARATOR . $item;
28 $f = fopen($fn, 'w');
36 var_dump(file_get_contents($fn));
38 get_basename_with_cp($fn, 65001);
40 var_dump(unlink($fn));
/PHP-7.3/sapi/cgi/tests/
H A Dbug75574_utf8_win.phpt23 $fn = dirname(__FILE__) . DIRECTORY_SEPARATOR . md5(uniqid());
24 file_put_contents($fn, "<?php\nvar_dump(putenv('FOO=啊'));\n//var_dump(`echo %FOO%`);\nvar_dump(gete…
26 echo shell_exec("$php -n -f $fn");
28 unlink($fn);

Completed in 39 milliseconds

123456