From 9f22cf7cdcc1f559e1ca55ceeff26e8519f9c73d Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Tue, 23 Jun 2009 15:42:45 +0000 Subject: [PATCH] Removal of closure stuff for now until its decided whether to put it in HEAD yet, fixes #48663 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@282661 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/reflection.xml | 39 +----------------------------------- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/language/oop5/reflection.xml b/language/oop5/reflection.xml index d36f70d48c..77bec6c83a 100644 --- a/language/oop5/reflection.xml +++ b/language/oop5/reflection.xml @@ -1,5 +1,5 @@ - + Reflection @@ -176,7 +176,6 @@ class ReflectionFunction extends ReflectionFunctionAbstract implements Reflector public string getName() public bool isInternal() public bool isDisabled() - public mixed getClosure() /* As of PHP 5.3.0 */ public bool isUserDefined() public string getFileName() public int getStartLine() @@ -579,7 +578,6 @@ class ReflectionMethod extends ReflectionFunctionAbstract implements Reflector public bool isConstructor() public bool isDestructor() public int getModifiers() - public mixed getClosure() /* As of PHP 5.3.0 */ public ReflectionClass getDeclaringClass() // Inherited from ReflectionFunctionAbstract @@ -669,41 +667,6 @@ var_dump($method->invoke(NULL)); ]]> - - Getting closure using <classname>ReflectionMethod</classname> class - -getMethod('printer'); -$closure = $method->getClosure(); /* As of PHP 5.3.0 */ -$closure(); // Hello World! - -?> -]]> - - - - - Trying to invoke private, protected or abstract methods will result - in an exception being thrown from the invoke - method. - - - - - For static methods as seen above, you should pass NULL as the first - argument to invoke. For non-static methods, pass - an instance of the class. - -