Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.3.2

Bug #18994 Closures not properly supported
Submitted: 2011-11-14 23:03 UTC
From: goodevilgenius Assigned: doconnor
Status: Closed Package: PHP_Shell
PHP Version: 5.3.6 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2011-11-14 23:03 UTC] goodevilgenius (Dan Jones)
Description: ------------ When Closures (anonymous functions) are used in PHP_Shell, a function_exists error is thrown. Test script: --------------- $f = function() { echo "foobar"; } $f(); Expected result: ---------------- foobar Actual result: -------------- Exception (code: 0) got thrown exception 'Exception' with message '/usr/share/php/PHP/Shell.php:746 function_exists() expects parameter 1 to be string, object given' in /usr/share/php/php-shell-cmd.php:70 Stack trace: #0 [internal function]: PHP_Shell_defaultErrorHandler(2, 'function_exists...', '/usr/share/php/...', 746, Array) #1 /usr/share/php/PHP/Shell.php(746): function_exists(Object(Closure)) #2 /usr/share/php/php-shell-cmd.php(146): PHP_Shell- >parse() #3 {main}

Comments

 [2011-11-14 23:29 UTC] goodevilgenius (Dan Jones)
 [2011-11-16 19:21 UTC] doconnor (Daniel O'Connor)
Thanks for the patch Dan
 [2011-11-16 19:25 UTC] doconnor (Daniel O'Connor)
-Status: Open +Status: Closed -Assigned To: +Assigned To: doconnor
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.
 [2011-11-21 18:40 UTC] doconnor (Daniel O'Connor)
-Status: Closed +Status: Open
Oops, that seems to have broken a test. http://test.pear.php.net:8080/job/PHP_Shell/
 [2011-12-09 15:49 UTC] doconnor (Daniel O'Connor)
-Status: Assigned +Status: Closed
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.