Searched refs:ReflectionFunction (Results 1 – 25 of 123) sorted by relevance
12345
/PHP-8.2/ext/reflection/tests/ |
H A D | ReflectionFunction_construct.001.phpt | 2 ReflectionFunction constructor errors 10 $a = new ReflectionFunction(array(1, 2, 3)); 16 $a = new ReflectionFunction('nonExistentFunction'); 21 $a = new ReflectionFunction(); 26 $a = new ReflectionFunction(1, 2); 31 $a = new ReflectionFunction([]); 38 Ok - ReflectionFunction::__construct(): Argument #1 ($function) must be of type Closure|string, arr… 40 Ok - ReflectionFunction::__construct() expects exactly 1 argument, 0 given 41 Ok - ReflectionFunction::__construct() expects exactly 1 argument, 2 given 42 Ok - ReflectionFunction::__construct(): Argument #1 ($function) must be of type Closure|string, arr…
|
H A D | gh10623.phpt | 2 GH-10623 (ReflectionFunction::getClosureUsedVariables() returns empty array in presence of variadic… 11 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables()); 14 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables()); 17 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables()); 20 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables()); 23 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables()); 26 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables()); 29 var_dump((new ReflectionFunction($closure))->getClosureUsedVariables());
|
H A D | ReflectionFunction_getClosure_basic.phpt | 2 Test ReflectionFunction::getClosure() function : basic functionality 5 echo "*** Testing ReflectionFunction::getClosure() : basic functionality ***\n"; 17 $func = new ReflectionFunction( 'foo' ); 21 $func = new ReflectionFunction( 'bar' ); 27 *** Testing ReflectionFunction::getClosure() : basic functionality ***
|
H A D | ReflectionFunction_isAnonymous.phpt | 2 ReflectionFunction::isAnonymous 5 $rf = new ReflectionFunction(function() {}); 8 $rf = new ReflectionFunction('strlen'); 11 $rf = new ReflectionFunction(strlen(...));
|
H A D | ReflectionFunction_isVariadic_basic.phpt | 2 ReflectionFunction::isVariadic() 10 var_dump((new ReflectionFunction('test1'))->isVariadic()); 11 var_dump((new ReflectionFunction('test2'))->isVariadic()); 12 var_dump((new ReflectionFunction('test3'))->isVariadic());
|
H A D | ReflectionFunction_getClosureUsedVariables.phpt | 5 $reflector = new ReflectionFunction("strlen"); 13 $reflector = new ReflectionFunction($function); 24 $reflector = new ReflectionFunction($function); 30 $reflector = new ReflectionFunction($function); 38 $reflector = new ReflectionFunction($function);
|
H A D | ReflectionFunction_isGenerator_basic.phpt | 2 ReflectionFunction::isGenerator() 11 $rf1 = new ReflectionFunction($closure1); 14 $rf2 = new ReflectionFunction($closure2); 25 $rf1 = new ReflectionFunction('func1'); 28 $rf2 = new ReflectionFunction('func2');
|
H A D | ReflectionFunction_isDisabled_basic.phpt | 2 ReflectionFunction::isDisabled 11 $rf = new ReflectionFunction('is_file'); 17 $rf = new ReflectionFunction('is_string'); 23 Deprecated: Method ReflectionFunction::isDisabled() is deprecated in %s on line %d
|
H A D | ReflectionFunction_getExtensionName.phpt | 2 ReflectionFunction::getExtensionName() 7 $function = new ReflectionFunction('sort'); 10 $function = new ReflectionFunction('foo');
|
H A D | ReflectionFunction_getExtension.phpt | 2 ReflectionFunction::getExtension() 7 $function = new ReflectionFunction('sort'); 10 $function = new ReflectionFunction('foo');
|
H A D | bug49092.phpt | 2 Bug #49092 (ReflectionFunction fails to work with functions in fully qualified namespaces) 7 new \ReflectionFunction('ns\func'); 8 new \ReflectionFunction('\ns\func');
|
H A D | bug48757.phpt | 2 Bug #48757 (ReflectionFunction::invoke() parameter issues) 13 $func = new ReflectionFunction('test'); 16 $func = new ReflectionFunction('another_test');
|
H A D | ReflectionFunction_getClosureCalledClass.phpt | 34 $r = new \ReflectionFunction($d); 40 $r = new \ReflectionFunction($d); 46 $r = new \ReflectionFunction($d); 52 $r = new \ReflectionFunction($d); 58 $r = new \ReflectionFunction($d); 64 $r = new \ReflectionFunction($d); 71 $r = new \ReflectionFunction($d);
|
H A D | ReflectionParameter_isVariadic_basic.phpt | 10 $r1 = new ReflectionFunction('test1'); 11 $r2 = new ReflectionFunction('test2'); 12 $r3 = new ReflectionFunction('test3');
|
H A D | closures_005.phpt | 17 (new ReflectionFunction(function(){}))->isStatic(), 18 (new ReflectionFunction(static function(){}))->isStatic(), 19 (new ReflectionFunction($foo->qux()))->isStatic(),
|
H A D | ReflectionFunction_getNamespaceName.phpt | 2 ReflectionFunction::getNamespaceName() 8 $function = new \ReflectionFunction('sort'); 14 $function = new \ReflectionFunction('A\\B\\foo');
|
H A D | 019.phpt | 2 ReflectionFunction::getExtensionName 5 $f = new ReflectionFunction("sleep");
|
H A D | bug70674.phpt | 2 Bug #70674 (ReflectionFunction::getClosure() leaks memory when used for internal functions) 5 var_dump(((new ReflectionFunction("strlen"))->getClosure())("hello"));
|
/PHP-8.2/Zend/tests/attributes/ |
H A D | 006_filter.phpt | 6 $ref = new \ReflectionFunction(#[A1] #[A2] function () { }); 11 $ref = new \ReflectionFunction(#[A1] #[A2] function () { }); 16 $ref = new \ReflectionFunction(#[A1] #[A2] #[A2] function () { }); 28 $ref = new \ReflectionFunction(#[A1] #[A2] #[A5] function () { }); 33 $ref = new \ReflectionFunction(#[A1] #[A2] function () { }); 38 $ref = new \ReflectionFunction(#[A1] #[A2] function () { }); 43 $ref = new \ReflectionFunction(#[A1] #[A2] #[A3] function () { }); 48 $ref = new \ReflectionFunction(#[A1] #[A2] #[A3] function () { }); 55 $ref = new \ReflectionFunction(function () { }); 63 $ref = new \ReflectionFunction(function () { });
|
H A D | gh8421.phpt | 43 var_dump((new ReflectionFunction($globalClosure))->getAttributes(FunctionAttribute::class)[0]->newI… 44 var_dump((new ReflectionFunction($globalStaticClosure))->getAttributes(FunctionAttribute::class)[0]… 45 var_dump((new ReflectionFunction(ClosureHolder::getClosureDefinedInScopeStatically()))->getAttribut… 46 var_dump((new ReflectionFunction(ClosureHolder::getStaticClosureDefinedInScopeStatically()))->getAt… 50 var_dump((new ReflectionFunction($holder->getClosureDefinedInScope()))->getAttributes(FunctionAttri… 51 var_dump((new ReflectionFunction($holder->getStaticClosureDefinedInScope()))->getAttributes(Functio…
|
H A D | 028_grouped.phpt | 23 new \ReflectionFunction('foo'), 24 new \ReflectionFunction('bar'), 45 string(18) "ReflectionFunction" 51 string(18) "ReflectionFunction"
|
H A D | 001_placement.phpt | 38 new \ReflectionFunction('f1'), 39 new \ReflectionFunction($f2), 40 new \ReflectionFunction($f3) 112 string(18) "ReflectionFunction" 120 string(18) "ReflectionFunction" 128 string(18) "ReflectionFunction"
|
H A D | 005_objects.phpt | 19 $ref = new \ReflectionFunction(#[A1('test')] function () { }); 29 $ref = new \ReflectionFunction(#[A1] function () { }); 39 $ref = new \ReflectionFunction(#[A1([])] function () { }); 49 $ref = new \ReflectionFunction(#[A2] function () { }); 65 $ref = new \ReflectionFunction(#[A3] function () { }); 78 $ref = new \ReflectionFunction(#[A4(1)] function () { }); 90 $ref = new \ReflectionFunction(#[A5] function () { });
|
/PHP-8.2/ext/zend_test/tests/ |
H A D | observer_bug81430_1.phpt | 23 $r = new \ReflectionFunction("B"); 29 <!-- init ReflectionFunction::__construct() --> 30 <ReflectionFunction::__construct> 31 </ReflectionFunction::__construct>
|
H A D | observer_bug81430_2.phpt | 27 $r = new \ReflectionFunction("B"); 33 <!-- init ReflectionFunction::__construct() --> 34 <ReflectionFunction::__construct> 35 </ReflectionFunction::__construct>
|
Completed in 23 milliseconds
12345