From d764b87c4fbc0a7d454df011c542dd8549f25f34 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 1 Jul 2011 22:35:49 +0000 Subject: [PATCH] $this was not available in closures git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312786 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/functions.xml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/language/functions.xml b/language/functions.xml index a1f80becd8..06978b3cd2 100644 --- a/language/functions.xml +++ b/language/functions.xml @@ -758,6 +758,13 @@ print $my_cart->getTotal(0.05) . "\n"; + + + It was not possible to use $this from anonymous + function before PHP 5.4.0. + + + It is possible to use func_num_args,