From 3ea67885074fc8dd902c01c5844fe379afa8b22f Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Tue, 23 Jun 2009 16:59:11 +0000 Subject: [PATCH] Revert dams last change here, it doesnt break the build at all :) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@282668 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5/reflection.xml | 37 +----------------------------------- 1 file changed, 1 insertion(+), 36 deletions(-) diff --git a/language/oop5/reflection.xml b/language/oop5/reflection.xml index a52201543b..d5a6dfee2d 100644 --- a/language/oop5/reflection.xml +++ b/language/oop5/reflection.xml @@ -1,5 +1,5 @@ - + Reflection @@ -667,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. - -