Home
last modified time | relevance | path

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

12345678910>>...12

/PHP-7.3/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.3/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
85 } else if (!(func->common.fn_flags & ZEND_ACC_STATIC) && func->common.scope in zend_valid_closure_binding()
379 return &closure->func; in zend_get_closure_method_def()
648 EX(func) = NULL; in ZEND_NAMED_FUNCTION()
667 memcpy(&closure->func, func, sizeof(zend_op_array)); in zend_create_closure()
687 closure->func.op_array.run_time_cache = func->op_array.run_time_cache; in zend_create_closure()
[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_execute_API.c389 zend_function *func; in get_active_class_name() local
398 func = EG(current_execute_data)->func; in get_active_class_name()
426 func = EG(current_execute_data)->func; in get_active_function_name()
451 while (ex && (!ex->func || !ZEND_USER_CODE(ex->func->type))) { in zend_get_executed_filename()
466 while (ex && (!ex->func || !ZEND_USER_CODE(ex->func->type))) { in zend_get_executed_filename_ex()
481 while (ex && (!ex->func || !ZEND_USER_CODE(ex->func->type))) { in zend_get_executed_lineno()
503 } else if (ex->func && (ZEND_USER_CODE(ex->func->type) || ex->func->common.scope)) { in zend_get_executed_scope()
688 func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", in zend_call_function()
714 func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", in zend_call_function()
804 efree(func); in zend_call_function()
[all …]
/PHP-7.3/ext/reflection/tests/
H A D009.phpt15 $func = new ReflectionFunction("test");
17 var_dump($func->export("test"));
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 var_dump($func->export("test"));
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.3/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()
99 && func->op_array.opcodes[func->op_array.num_args].opcode == ZEND_RETURN) { in zend_try_inline_call()
101 zend_op *ret_opline = func->op_array.opcodes + func->op_array.num_args; in zend_try_inline_call()
127 …if (Z_TYPE_P(RT_CONSTANT(&func->op_array.opcodes[i], func->op_array.opcodes[i].op2)) == IS_CONSTAN… in zend_try_inline_call()
219 call_stack[call].func = NULL; in zend_optimize_func_calls()
228 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
254 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
264 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
271 if (call_stack[call - 1].func) { in zend_optimize_func_calls()
[all …]
/PHP-7.3/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.3/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.3/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.3/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.3/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.3/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()
450 do_callback(&func->afunc, &func->func, argc, argv, context, 0); in php_sqlite3_func_callback()
543 func = (struct pdo_sqlite_func*)ecalloc(1, sizeof(*func)); in PHP_METHOD()
550 ZVAL_COPY(&func->func, callback); in PHP_METHOD()
560 efree(func); in PHP_METHOD()
622 func = (struct pdo_sqlite_func*)ecalloc(1, sizeof(*func)); in PHP_METHOD()
[all …]
/PHP-7.3/ext/intl/common/
H A Dcommon_date.cpp39 const char *func) argument
64 "that's too large", func);
107 intl_error *err, const char *func) argument
131 "object", func);
149 "initialized", func, ZSTR_VAL(Z_OBJCE_P(z)->name));
159 datetime, 1, NULL, func);
162 "time zone", func);
194 "which would be required for it to be a valid date", func,
209 intl_datetime_decompose(z, &rv, NULL, err, func);
214 "constructed", func);
[all …]
/PHP-7.3/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.3/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.3/tests/lang/
H A Dbug17115.phpt5 $func = create_function('','
9 var_dump($func());
10 var_dump($func());
11 var_dump($func());
/PHP-7.3/ext/intl/tests/
H A Dbadargs.phpt11 foreach($funcs as $func) {
12 $rfunc = new ReflectionFunction($func);
18 $res = $func($arg);
25 echo "$func: ";
/PHP-7.3/ext/sqlite3/tests/
H A Dsqlite3_29_createfunction.phpt10 $func = 'strtoupper';
11 var_dump($db->createfunction($func, $func));
18 var_dump($db->createfunction($func, $func2));

Completed in 45 milliseconds

12345678910>>...12