Home
last modified time | relevance | path

Searched refs:func (Results 1 – 25 of 266) sorted by relevance

1234567891011

/PHP-7.4/Zend/tests/
H A Ddynamic_call_006.phpt6 $func = 'extract';
7 $func(['a' => 'b']);
9 $func = 'compact';
10 $func(['a']);
13 $func('a=b');
16 $func();
18 $func = 'assert';
19 $func('1==2');
22 $func();
25 $func(1);
[all …]
H A Dbug48770.phpt9 public function func($str) {
24 public function func($str) {
28 print "This method shouldn't be called when using parent::func!\n";
32 call_user_func_array(array($this, 'parent::func'), array($str));
43 public function func($str) {
44 parent::func($str);
49 $c->func('This should work!');
53 string(26) "A::func: This should work!"
H A Dclosure_033.phpt7 public $func;
9 $this->func = function() {
13 private function func() {
19 $f = $o->func;
21 $o->func();
28 Fatal error: Uncaught Error: Call to private method Test::func() from context '' in %sclosure_033.p…
/PHP-7.4/Zend/
H A Dzend_closures.c37 zend_function func; member
49 zend_function *func = EX(func); in ZEND_METHOD() local
58 efree(func); in ZEND_METHOD()
60 execute_data->func = NULL; in ZEND_METHOD()
68 zend_function *func = &closure->func; in zend_valid_closure_binding() local
414 return &closure->func; in zend_get_closure_method_def()
517 *fptr_ptr = &closure->func; in zend_closure_get_closure()
683 EX(func) = NULL; in ZEND_NAMED_FUNCTION()
702 memcpy(&closure->func, func, sizeof(zend_op_array)); in zend_create_closure()
747 memcpy(&closure->func, func, sizeof(zend_internal_function)); in zend_create_closure()
[all …]
H A Dzend_execute_API.c436 zend_function *func; in get_active_class_name() local
445 func = EG(current_execute_data)->func; in get_active_class_name()
473 func = EG(current_execute_data)->func; in get_active_function_name()
498 while (ex && (!ex->func || !ZEND_USER_CODE(ex->func->type))) { in zend_get_executed_filename()
513 while (ex && (!ex->func || !ZEND_USER_CODE(ex->func->type))) { in zend_get_executed_filename_ex()
528 while (ex && (!ex->func || !ZEND_USER_CODE(ex->func->type))) { in zend_get_executed_lineno()
550 } else if (ex->func && (ZEND_USER_CODE(ex->func->type) || ex->func->common.scope)) { in zend_get_executed_scope()
744 func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", in zend_call_function()
772 func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", in zend_call_function()
867 efree(func); in zend_call_function()
[all …]
H A Dzend_cpuinfo.c34 static void __zend_cpuid(uint32_t func, uint32_t subfunc, zend_cpu_info *cpuinfo) { in __zend_cpuid() argument
35 __cpuid_count(func, subfunc, cpuinfo->eax, cpuinfo->ebx, cpuinfo->ecx, cpuinfo->edx); in __zend_cpuid()
38 static void __zend_cpuid(uint32_t func, uint32_t subfunc, zend_cpu_info *cpuinfo) { in __zend_cpuid() argument
47 : "a"(func), "c"(subfunc) in __zend_cpuid()
53 : "a"(func), "c"(subfunc) in __zend_cpuid()
60 static void __zend_cpuid(uint32_t func, uint32_t subfunc, zend_cpu_info *cpuinfo) { in __zend_cpuid() argument
63 __cpuidex(regs, func, subfunc); in __zend_cpuid()
71 static void __zend_cpuid(uint32_t func, uint32_t subfunc, zend_cpu_info *cpuinfo) { in __zend_cpuid() argument
H A Dzend_ptr_stack.c80 ZEND_API void zend_ptr_stack_apply(zend_ptr_stack *stack, void (*func)(void *)) in zend_ptr_stack_apply()
85 func(stack->elements[i]); in zend_ptr_stack_apply()
89 ZEND_API void zend_ptr_stack_reverse_apply(zend_ptr_stack *stack, void (*func)(void *)) in zend_ptr_stack_reverse_apply()
94 func(stack->elements[i++]); in zend_ptr_stack_reverse_apply()
99 ZEND_API void zend_ptr_stack_clean(zend_ptr_stack *stack, void (*func)(void *), zend_bool free_elem… in zend_ptr_stack_clean()
101 zend_ptr_stack_apply(stack, func); in zend_ptr_stack_clean()
/PHP-7.4/ext/reflection/tests/
H A D009.phpt15 $func = new ReflectionFunction("test");
17 echo $func;
19 var_dump($func->getName());
21 var_dump($func->isInternal());
23 var_dump($func->isUserDefined());
25 var_dump($func->getFilename());
27 var_dump($func->getStartline());
29 var_dump($func->getEndline());
31 var_dump($func->getDocComment());
39 var_dump($func->returnsReference());
[all …]
H A D025.phpt15 $func = new ReflectionFunction("test");
17 echo $func;
19 var_dump($func->getName());
21 var_dump($func->isInternal());
23 var_dump($func->isUserDefined());
25 var_dump($func->getFilename());
27 var_dump($func->getStartline());
29 var_dump($func->getEndline());
31 var_dump($func->getDocComment());
39 var_dump($func->returnsReference());
[all …]
H A D010.phpt6 function func() {
10 function func() {
13 $m = new ReflectionMethod("Bar::func");
17 Method [ <user, overwrites Foo, prototype Foo> public method func ] {
H A Dbug48757.phpt13 $func = new ReflectionFunction('test');
14 $func->invoke();
16 $func = new ReflectionFunction('another_test');
17 $func->invoke('testing');
H A Dparameters_001.phpt7 function func($x, $y = NULL){
12 $f = new ReflectionMethod('Test', 'func');
16 $p = new ReflectionParameter(array('Test', 'func'), 'x');
19 $p = new ReflectionParameter(array('Test', 'func'), 'y');
23 $p = new ReflectionParameter(array('Test', 'func'), 'z');
/PHP-7.4/ext/opcache/Optimizer/
H A Doptimize_func_calls.c40 zend_function *func; member
96 if (func->type == ZEND_USER_FUNCTION in zend_try_inline_call()
101 && func->op_array.opcodes[func->op_array.num_args].opcode == ZEND_RETURN) { in zend_try_inline_call()
103 zend_op *ret_opline = func->op_array.opcodes + func->op_array.num_args; in zend_try_inline_call()
135 …if (Z_TYPE_P(RT_CONSTANT(&func->op_array.opcodes[i], func->op_array.opcodes[i].op2)) == IS_CONSTAN… in zend_try_inline_call()
227 call_stack[call].func = NULL; in zend_optimize_func_calls()
236 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
262 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
272 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
279 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
[all …]
/PHP-7.4/ext/com_dotnet/tests/
H A Dbug33386.phpt13 public function func1() { echo " func one\n"; }
14 public function func2() { echo " func two\n"; }
25 $oScript->ExecuteStatement ("tfA.func$i");
26 $oScript->ExecuteStatement ("func$i");
30 $oScript->ExecuteStatement ("tfB.func$i");
37 func one
38 func one
39 func two
40 func two
41 func one
[all …]
/PHP-7.4/ext/spl/
H A Dspl_engine.h33 zend_function *func = pce->constructor; in spl_instantiate_arg_ex1() local
36 …zend_call_method(retval, pce, &func, ZSTR_VAL(func->common.function_name), ZSTR_LEN(func->common.f… in spl_instantiate_arg_ex1()
44 zend_function *func = pce->constructor; in spl_instantiate_arg_ex2() local
47 …zend_call_method(retval, pce, &func, ZSTR_VAL(func->common.function_name), ZSTR_LEN(func->common.f… in spl_instantiate_arg_ex2()
55 zend_function *func = pce->constructor; in spl_instantiate_arg_n() local
63 ZVAL_STR(&fci.function_name, func->common.function_name); in spl_instantiate_arg_n()
70 fcc.function_handler = func; in spl_instantiate_arg_n()
/PHP-7.4/main/
H A Dphp_ticks.c24 void (*func)(int, void *); member
48 return e1->func == e2->func && e1->arg == e2->arg; in php_compare_tick_functions()
51 PHPAPI void php_add_tick_function(void (*func)(int, void*), void * arg) in php_add_tick_function()
53 struct st_tick_function tmp = {func, arg}; in php_add_tick_function()
57 PHPAPI void php_remove_tick_function(void (*func)(int, void *), void * arg) in php_remove_tick_function()
59 struct st_tick_function tmp = {func, arg}; in php_remove_tick_function()
66 data->func(*((int *)arg), data->arg); in php_tick_iterator()
/PHP-7.4/tests/classes/
H A Dabstract_user_call.phpt8 abstract function func();
13 function func()
21 $o->func();
23 call_user_func(array($o, 'test_base::func'));
28 test::func()
30 … parameter 1 to be a valid callback, cannot call abstract method test_base::func() in %s on line %d
/PHP-7.4/Zend/tests/generators/
H A Dbug76427.phpt5 $func = function () {
14 $func = $a->func = $func();
18 unset($func);
H A Daborted_yield_during_nested_fcalls.phpt6 function func() {}
9 func(func($x, $x, func($x, yield)));
/PHP-7.4/ext/intl/common/
H A Dcommon_date.cpp39 const char *func) in timezone_convert_datetimezone() argument
64 "that's too large", func); in timezone_convert_datetimezone()
100 intl_error *err, const char *func) in intl_datetime_decompose() argument
124 "object", func); in intl_datetime_decompose()
142 "initialized", func, ZSTR_VAL(Z_OBJCE_P(z)->name)); in intl_datetime_decompose()
152 datetime, 1, NULL, func); in intl_datetime_decompose()
155 "time zone", func); in intl_datetime_decompose()
188 "which would be required for it to be a valid date", func, in intl_zval_to_millis()
203 intl_datetime_decompose(z, &rv, NULL, err, func); in intl_zval_to_millis()
208 "constructed", func); in intl_zval_to_millis()
[all …]
/PHP-7.4/Zend/tests/traits/
H A Dbug61998.phpt7 func as newFunc;
10 public function func() {
16 public function func() {
22 public function func() {
32 func as newFunc;
33 func as func2;
51 $f->func(); //from Foo
55 $b->func(); //from Bar
/PHP-7.4/ext/pdo_sqlite/
H A Dsqlite_driver.c111 func->argc, in pdo_sqlite_cleanup_callbacks()
113 func, in pdo_sqlite_cleanup_callbacks()
118 if (!Z_ISUNDEF(func->func)) { in pdo_sqlite_cleanup_callbacks()
119 zval_ptr_dtor(&func->func); in pdo_sqlite_cleanup_callbacks()
127 efree(func); in pdo_sqlite_cleanup_callbacks()
459 do_callback(&func->afunc, &func->func, argc, argv, context, 0); in php_sqlite3_func_callback()
552 func = (struct pdo_sqlite_func*)ecalloc(1, sizeof(*func)); in PHP_METHOD()
559 ZVAL_COPY(&func->func, callback); in PHP_METHOD()
569 efree(func); in PHP_METHOD()
631 func = (struct pdo_sqlite_func*)ecalloc(1, sizeof(*func)); in PHP_METHOD()
[all …]
/PHP-7.4/ext/pcntl/
H A Dphp_signal.c26 Sigfunc *php_signal4(int signo, Sigfunc *func, int restart, int mask_all) in php_signal4() argument
31 act.sa_sigaction = func; in php_signal4()
33 act.sa_handler = func; in php_signal4()
64 Sigfunc *php_signal(int signo, Sigfunc *func, int restart) in php_signal() argument
66 return php_signal4(signo, func, restart, 0); in php_signal()
/PHP-7.4/tests/lang/
H A Dbug17115.phpt5 $func = create_function('','
9 var_dump($func());
10 var_dump($func());
11 var_dump($func());
/PHP-7.4/ext/intl/tests/
H A Dbadargs.phpt11 foreach($funcs as $func) {
12 $rfunc = new ReflectionFunction($func);
18 $res = $func($arg);
25 echo "$func: ";

Completed in 39 milliseconds

1234567891011