/PHP-7.1/Zend/tests/ |
H A D | dynamic_call_006.phpt | 6 $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 D | bug48770.phpt | 9 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 %unicode|string%(26) "A::func: This should work!"
|
H A D | closure_033.phpt | 7 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…
|
H A D | dynamic_call_005.phpt | 6 function test_calls($func) { 9 array_map($func, [['i' => new stdClass]]); 12 $func(['i' => new stdClass]); 15 call_user_func($func, ['i' => new stdClass]);
|
/PHP-7.1/Zend/ |
H A D | zend_closures.c | 42 zend_function func; member 54 zend_function *func = EX(func); in ZEND_METHOD() local 63 efree(func); in ZEND_METHOD() 65 execute_data->func = NULL; in ZEND_METHOD() 73 zend_function *func = &closure->func; in zend_valid_closure_binding() local 90 } else if (!(func->common.fn_flags & ZEND_ACC_STATIC) && func->common.scope in zend_valid_closure_binding() 374 return &closure->func; in zend_get_closure_method_def() 637 EX(func) = NULL; in zend_closure_internal_handler() 656 memcpy(&closure->func, func, sizeof(zend_op_array)); in zend_create_closure() 674 closure->func.op_array.run_time_cache = func->op_array.run_time_cache; in zend_create_closure() [all …]
|
H A D | zend_execute_API.c | 254 zend_function *func; in shutdown_executor() local 429 func = EG(current_execute_data)->func; in get_active_class_name() 457 func = EG(current_execute_data)->func; in get_active_function_name() 482 while (ex && (!ex->func || !ZEND_USER_CODE(ex->func->type))) { in zend_get_executed_filename() 497 while (ex && (!ex->func || !ZEND_USER_CODE(ex->func->type))) { in zend_get_executed_filename_ex() 512 while (ex && (!ex->func || !ZEND_USER_CODE(ex->func->type))) { in zend_get_executed_lineno() 534 } else if (ex->func && (ZEND_USER_CODE(ex->func->type) || ex->func->common.scope)) { in zend_get_executed_scope() 791 func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", in zend_call_function() 818 func->common.scope ? ZSTR_VAL(func->common.scope->name) : "", in zend_call_function() 909 efree(func); in zend_call_function() [all …]
|
H A D | zend_builtin_functions.c | 1610 RETURN_BOOL(func && (func->type != ZEND_INTERNAL_FUNCTION || in ZEND_FUNCTION() 2066 if (!func) { in ZEND_FUNCTION() 2433 if (skip->func && ZEND_USER_CODE(skip->func->common.type)) { in ZEND_FUNCTION() 2455 func = call->func; in ZEND_FUNCTION() 2467 func = NULL; in ZEND_FUNCTION() 2562 if (prev->func && ZEND_USER_CODE(prev->func->common.type)) { in ZEND_FUNCTION() 2599 if (!ptr->func || !ZEND_USER_CODE(ptr->func->common.type)) { in zend_fetch_debug_backtrace() 2642 if (skip->func && ZEND_USER_CODE(skip->func->common.type)) { in zend_fetch_debug_backtrace() 2689 func = call->func; in zend_fetch_debug_backtrace() 2693 (object ? object->ce : func->common.scope), func) : in zend_fetch_debug_backtrace() [all …]
|
/PHP-7.1/ext/reflection/tests/ |
H A D | 009.phpt | 15 $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 D | 025.phpt | 17 $func = new ReflectionFunction("test"); 19 var_dump($func->export("test")); 21 var_dump($func->getName()); 23 var_dump($func->isInternal()); 25 var_dump($func->isUserDefined()); 27 var_dump($func->getFilename()); 29 var_dump($func->getStartline()); 31 var_dump($func->getEndline()); 33 var_dump($func->getDocComment()); 41 var_dump($func->returnsReference()); [all …]
|
H A D | bug48757.phpt | 13 $func = new ReflectionFunction('test'); 14 $func->invoke(); 16 $func = new ReflectionFunction('another_test'); 17 $func->invoke('testing');
|
H A D | 010.phpt | 8 function func() { 12 function func() { 15 $m = new ReflectionMethod("Bar::func"); 19 Method [ <user, overwrites Foo, prototype Foo> public method func ] {
|
H A D | parameters_001.phpt | 7 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.1/ext/opcache/Optimizer/ |
H A D | optimize_func_calls.c | 40 zend_function *func; member 95 if (func->type == ZEND_USER_FUNCTION in zend_try_inline_call() 98 && func->op_array.opcodes[func->op_array.num_args].opcode == ZEND_RETURN) { in zend_try_inline_call() 100 zend_op *ret_opline = func->op_array.opcodes + func->op_array.num_args; in zend_try_inline_call() 126 if (Z_CONSTANT_P(RT_CONSTANT(&func->op_array, func->op_array.opcodes[i].op2))) { in zend_try_inline_call() 130 } while (i < func->op_array.num_args); in zend_try_inline_call() 219 call_stack[call].func = NULL; in zend_optimize_func_calls() 227 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() [all …]
|
/PHP-7.1/ext/com_dotnet/tests/ |
H A D | bug33386.phpt | 13 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.1/ext/spl/ |
H A D | spl_engine.h | 35 zend_function *func = pce->constructor; in spl_instantiate_arg_ex1() local 38 …zend_call_method(retval, pce, &func, ZSTR_VAL(func->common.function_name), ZSTR_LEN(func->common.f… in spl_instantiate_arg_ex1() 46 zend_function *func = pce->constructor; in spl_instantiate_arg_ex2() local 49 …zend_call_method(retval, pce, &func, ZSTR_VAL(func->common.function_name), ZSTR_LEN(func->common.f… in spl_instantiate_arg_ex2() 57 zend_function *func = pce->constructor; in spl_instantiate_arg_n() local 65 ZVAL_STR(&fci.function_name, func->common.function_name); in spl_instantiate_arg_n() 73 fcc.function_handler = func; in spl_instantiate_arg_n()
|
/PHP-7.1/main/ |
H A D | php_ticks.c | 26 void (*func)(int, void *); member 50 return e1->func == e2->func && e1->arg == e2->arg; in php_compare_tick_functions() 53 PHPAPI void php_add_tick_function(void (*func)(int, void*), void * arg) in php_add_tick_function() 55 struct st_tick_function tmp = {func, arg}; in php_add_tick_function() 59 PHPAPI void php_remove_tick_function(void (*func)(int, void *), void * arg) in php_remove_tick_function() 61 struct st_tick_function tmp = {func, arg}; in php_remove_tick_function() 68 data->func(*((int *)arg), data->arg); in php_tick_iterator()
|
/PHP-7.1/ext/pdo_sqlite/ |
H A D | sqlite_driver.c | 114 func->argc, in pdo_sqlite_cleanup_callbacks() 116 func, in pdo_sqlite_cleanup_callbacks() 121 if (!Z_ISUNDEF(func->func)) { in pdo_sqlite_cleanup_callbacks() 122 zval_ptr_dtor(&func->func); in pdo_sqlite_cleanup_callbacks() 130 efree(func); in pdo_sqlite_cleanup_callbacks() 449 do_callback(&func->afunc, &func->func, argc, argv, context, 0); in php_sqlite3_func_callback() 540 func = (struct pdo_sqlite_func*)ecalloc(1, sizeof(*func)); in PHP_METHOD() 547 ZVAL_COPY(&func->func, callback); in PHP_METHOD() 557 efree(func); in PHP_METHOD() 616 func = (struct pdo_sqlite_func*)ecalloc(1, sizeof(*func)); in PHP_METHOD() [all …]
|
/PHP-7.1/tests/classes/ |
H A D | abstract_user_call.phpt | 8 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.1/Zend/tests/traits/ |
H A D | bug61998.phpt | 7 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.1/tests/lang/ |
H A D | bug17115.phpt | 5 $func = create_function('',' 9 var_dump($func()); 10 var_dump($func()); 11 var_dump($func());
|
/PHP-7.1/ext/intl/common/ |
H A D | common_date.cpp | 42 const char *func) argument 67 "that's too large", func); 110 intl_error *err, const char *func) argument 134 "object", func); 152 "initialized", func, ZSTR_VAL(Z_OBJCE_P(z)->name)); 162 datetime, 1, NULL, func); 165 "time zone", func); 197 "which would be required for it to be a valid date", func, 212 intl_datetime_decompose(z, &rv, NULL, err, func); 217 "constructed", func); [all …]
|
/PHP-7.1/Zend/tests/generators/ |
H A D | aborted_yield_during_nested_fcalls.phpt | 6 function func() {} 9 func(func($x, $x, func($x, yield)));
|
/PHP-7.1/ext/pcntl/ |
H A D | php_signal.c | 28 Sigfunc *php_signal4(int signo, Sigfunc *func, int restart, int mask_all) in php_signal4() argument 33 act.sa_sigaction = func; in php_signal4() 35 act.sa_handler = func; in php_signal4() 66 Sigfunc *php_signal(int signo, Sigfunc *func, int restart) in php_signal() argument 68 return php_signal4(signo, func, restart, 0); in php_signal()
|
/PHP-7.1/ext/intl/tests/ |
H A D | badargs.phpt | 11 foreach($funcs as $func) { 12 $rfunc = new ReflectionFunction($func); 18 $res = $func($arg); 25 echo "$func: ";
|
/PHP-7.1/sapi/phpdbg/ |
H A D | phpdbg_print.c | 211 PHPDBG_PRINT(func) /* {{{ */ in PHPDBG_PRINT() argument 270 if (!func) { in phpdbg_print_opcodes_function() 272 ZEND_HASH_FOREACH_STR_KEY_PTR(EG(class_table), rt_name, func) { in phpdbg_print_opcodes_function() 274 …if (func->op_array.function_name->len == len && !zend_binary_strcasecmp(function, len, func->op_ar… in phpdbg_print_opcodes_function() 283 …phpdbg_out("function name: %.*s\n", (int) ZSTR_LEN(func->op_array.function_name), ZSTR_VAL(func->o… in phpdbg_print_opcodes_function() 284 phpdbg_print_function_helper(func); in phpdbg_print_opcodes_function() 288 zend_function *func; in phpdbg_print_opcodes_method_ce() local 300 phpdbg_print_function_helper(func); in phpdbg_print_opcodes_method_ce() 387 zend_function *func; in phpdbg_print_opcodes() local 392 ZEND_HASH_FOREACH_STR_KEY_PTR(EG(function_table), name, func) { in phpdbg_print_opcodes() [all …]
|