Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 25 of 148) sorted by last modified time

123456

/PHP-7.4/ext/gd/
H A Dgd.c2676 char *fn = NULL; in _php_image_output() local
2694 fn = file; in _php_image_output()
2704 PHP_GD_CHECK_OPEN_BASEDIR(fn, "Invalid filename"); in _php_image_output()
2706 fp = VCWD_FOPEN(fn, "wb"); in _php_image_output()
2708 php_error_docref(NULL, E_WARNING, "Unable to open '%s' for writing", fn); in _php_image_output()
/PHP-7.4/ext/fileinfo/
H A Dlibmagic.patch147 + if (fn) {
336 if ((fn = magic_getpath(fn, action)) == NULL)
343 + if (fn == NULL)
345 + if (fn == NULL) {
370 fn = p;
404 + ms->file = fn;
410 fn);
944 - if (asprintf(&buf, "%.*s.mime%s", CAST(int, q - fn), fn, ext)
960 - if (asprintf(&buf, "%.*s%s", CAST(int, q - fn), fn, ext) < 0)
1990 if (fn == NULL)
[all …]
/PHP-7.4/Zend/
H A Dzend_API.c2884 zend_function *fn; in zend_disable_class() local
2897 ZEND_HASH_FOREACH_PTR(&disabled_class->function_table, fn) { in zend_disable_class()
2898 if ((fn->common.fn_flags & (ZEND_ACC_HAS_RETURN_TYPE|ZEND_ACC_HAS_TYPE_HINTS)) && in zend_disable_class()
2899 fn->common.scope == disabled_class) { in zend_disable_class()
2900 zend_free_internal_arg_info(&fn->internal_function); in zend_disable_class()
H A Dzend_compile.c7044 binary_op_type fn = get_binary_op(opcode); in zend_try_ct_eval_binary_op() local
7064 fn(result, op1, op2); in zend_try_ct_eval_binary_op()
7071 unary_op_type fn = get_unary_op(opcode); in zend_ct_eval_unary_op() local
7072 fn(result, op); in zend_ct_eval_unary_op()
7086 binary_op_type fn = kind == ZEND_AST_GREATER in zend_ct_eval_greater() local
7088 fn(result, op2, op1); in zend_ct_eval_greater()
H A Dzend_inheritance.c689 return fn->common.type == ZEND_USER_FUNCTION ? fn->op_array.line_start : 0; in func_lineno()
1607 ZSTR_VAL(fn->common.scope->name), ZSTR_VAL(fn->common.function_name), in zend_add_trait_method()
1615 fn->common.prototype = NULL; in zend_add_trait_method()
1639 fn->common.scope = ce; in zend_fixup_trait_method()
1644 if (fn->type == ZEND_USER_FUNCTION && fn->op_array.static_variables) { in zend_fixup_trait_method()
1669 fn_copy = *fn; in zend_traits_copy_functions()
1682 aliases[i] = fn->common.scope; in zend_traits_copy_functions()
1716 aliases[i] = fn->common.scope; in zend_traits_copy_functions()
1869 zend_function *fn; in zend_do_traits_method_binding() local
1897 zend_fixup_trait_method(fn, ce); in zend_do_traits_method_binding()
[all …]
/PHP-7.4/sapi/litespeed/
H A Dlsapilib.c2261 LSAPI_CB_EnvHandler fn, void * arg ) in LSAPI_ForeachOrgHeader_r() argument
2270 if ( !pReq || !fn ) in LSAPI_ForeachOrgHeader_r()
2337 LSAPI_CB_EnvHandler fn, void * arg ) in LSAPI_ForeachHeader_r() argument
2344 if ( !pReq || !fn ) in LSAPI_ForeachHeader_r()
2393 ret = (*fn)( achHeaderName, keyLen, in LSAPI_ForeachHeader_r()
2409 if ( !pEnv || !fn ) in EnvForeach()
2413 ret = (*fn)( pEnv->pKey, pEnv->keyLen, in EnvForeach()
2426 if ( !pReq || !fn ) in LSAPI_ForeachEnv_r()
2431 fn, arg ); in LSAPI_ForeachEnv_r()
2440 if ( !pReq || !fn ) in LSAPI_ForeachSpecialEnv_r()
[all …]
H A Dlsapilib.h160 LSAPI_CB_EnvHandler fn, void * arg );
163 LSAPI_CB_EnvHandler fn, void * arg );
166 LSAPI_CB_EnvHandler fn, void * arg );
169 LSAPI_CB_EnvHandler fn, void * arg );
284 static inline int LSAPI_ForeachHeader( LSAPI_CB_EnvHandler fn, void * arg ) in LSAPI_ForeachHeader() argument
285 { return LSAPI_ForeachHeader_r( &g_req, fn, arg ); } in LSAPI_ForeachHeader()
288 LSAPI_CB_EnvHandler fn, void * arg ) in LSAPI_ForeachOrgHeader() argument
289 { return LSAPI_ForeachOrgHeader_r( &g_req, fn, arg ); } in LSAPI_ForeachOrgHeader()
291 static inline int LSAPI_ForeachEnv( LSAPI_CB_EnvHandler fn, void * arg ) in LSAPI_ForeachEnv() argument
292 { return LSAPI_ForeachEnv_r( &g_req, fn, arg ); } in LSAPI_ForeachEnv()
[all …]
/PHP-7.4/ext/intl/tests/
H A Dbug80763.phpt12 array_walk($params, fn() => 1);
/PHP-7.4/ext/soap/
H A Dphp_sdl.c1539 static sdlPtr get_sdl_from_cache(const char *fn, const char *uri, time_t t, time_t *cached) in get_sdl_from_cache() argument
1554 f = open(fn, O_RDONLY|O_BINARY); in get_sdl_from_cache()
1571 unlink(fn); in get_sdl_from_cache()
1579 unlink(fn); in get_sdl_from_cache()
1587 unlink(fn); in get_sdl_from_cache()
2108 static void add_sdl_to_cache(const char *fn, const char *uri, time_t t, sdlPtr sdl) in add_sdl_to_cache() argument
2123 f = open(fn,O_CREAT|O_WRONLY|O_EXCL|O_BINARY,S_IREAD|S_IWRITE); in add_sdl_to_cache()
2125 f = open(fn,O_CREAT|O_WRONLY|O_EXCL|O_BINARY,S_IREAD|S_IWRITE); in add_sdl_to_cache()
3166 char fn[MAXPATHLEN]; in get_sdl() local
3182 } else if (VCWD_REALPATH(uri, fn) == NULL) { in get_sdl()
[all …]
H A Dsoap.c2605 sdlFunctionPtr fn; local
2676 fn = get_function(sdl, function);
2677 if (fn != NULL) {
2678 sdlBindingPtr binding = fn->binding;
2681 if (fn->responseName == NULL &&
2682 fn->responseParameters == NULL &&
2691 sdlSoapBindingFunctionPtr fnb = (sdlSoapBindingFunctionPtr)fn->bindingAttributes;
2692 …request = serialize_function_call(this_ptr, fn, NULL, fnb->input.ns, real_args, arg_count, soap_ve…
2695 …request = serialize_function_call(this_ptr, fn, NULL, sdl->target_ns, real_args, arg_count, soap_v…
2704 …ret = parse_packet_soap(this_ptr, Z_STRVAL(response), Z_STRLEN(response), fn, NULL, return_value, …
/PHP-7.4/Zend/tests/
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) {
/PHP-7.4/ext/ffi/
H A Dffi.c3400 zend_string *fn; in ZEND_METHOD() local
3405 Z_PARAM_STR(fn) in ZEND_METHOD()
3413 ffi = zend_ffi_load(ZSTR_VAL(fn), (CG(compiler_options) & ZEND_COMPILE_PRELOAD) != 0); in ZEND_METHOD()
/PHP-7.4/
H A DUPGRADING31 . "fn" is now a reserved keyword. In particular, it can no longer be used as a
210 $nums = array_map(fn($num) => $num * $factor, $nums);
/PHP-7.4/ext/opcache/Optimizer/
H A Dzend_cfg.c274 zend_function *fn; in zend_build_cfg() local
331 if ((fn = zend_hash_find_ptr(EG(function_table), Z_STR_P(zv))) != NULL) { in zend_build_cfg()
332 if (fn->type == ZEND_INTERNAL_FUNCTION) { in zend_build_cfg()
/PHP-7.4/ext/com_dotnet/
H A Dcom_handlers.c421 #define POPULATE_CTOR(f, fn) \ in com_constructor_get() argument
428 f.handler = ZEND_FN(fn); \ in com_constructor_get()
/PHP-7.4/ext/standard/tests/file/
H A Dtempnam_variation5-win32.phpt16 /* Passing an existing file as $prefix for tempnam() fn */
/PHP-7.4/ext/standard/tests/file/windows_mb_path/
H A Dtest_big5_0.phpt28 $fn = $prefix . DIRECTORY_SEPARATOR . "$item";
30 $f = fopen($fn, 'r');
H A Dtest_big5_2.phpt28 $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 Dtest_kartuli_utf8_0.phpt25 $fn = $prefix . DIRECTORY_SEPARATOR . $item;
27 $f = fopen($fn, 'r');
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_kartuli_utf8_3.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_cp936_to_utf8_0.phpt25 $fn = $prefix . DIRECTORY_SEPARATOR . "$item";
27 $f = fopen($fn, 'r');
H A Dtest_cp936_to_utf8_2.phpt25 $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 Dtest_eucjp_to_utf8_0.phpt25 $fn = $prefix . DIRECTORY_SEPARATOR . $item;
27 $f = fopen($fn, 'r');
/PHP-7.4/ext/ffi/tests/
H A D301-win32.phpt11 $fn = __DIR__ . "/300-win32.h";
15 file_get_contents("$fn.in")
17 file_put_contents($fn, $cont);
19 $ffi = FFI::load($fn);
24 $fn = __DIR__ . "/300-win32.h";
25 unlink($fn);

Completed in 164 milliseconds

123456