Bug #60410 [Fbk->NoF]: script stops when closure used without open brackets
| From: | php-bugs at lists dot php dot net | Date: | Mon, 18 Feb 2013 00:35:33 +0000 |
| Subject: | Bug #60410 [Fbk->NoF]: script stops when closure used without open brackets | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-177051@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60410&edit=1
ID: 60410
Updated by: php-bugs@lists.php.net
Reported by: zarzu dot razvan at gmail dot com
Summary: script stops when closure used without open brackets
-Status: Feedback
+Status: No Feedback
Type: Bug
Package: Variables related
Operating System: Windows XP
PHP Version: Irrelevant
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2011-11-30 00:27:33] yohgaki@php.net
That's strange. With cli/Linux, I get this for both trunk and PHP 5.3
PHP Catchable fatal error: Object of class Closure could not be converted to
string in /home/yohgaki/ext/svn/oss/php.net/php-src/t3.php on line 3
Try with cli binary.
------------------------------------------------------------------------
[2011-11-29 15:49:16] zarzu dot razvan at gmail dot com
display_errors was set to 1. Changed it to 0, same result.
------------------------------------------------------------------------
[2011-11-29 14:20:25] felipe@php.net
Check if your display_errors is set to 0 (zero)
------------------------------------------------------------------------
[2011-11-29 14:15:41] zarzu dot razvan at gmail dot com
Description:
------------
When declaring a closure and using it without the open brackets (as if it were a variable), PHP
stops from executing next instructions.
Test script:
---------------
$a = function(){};
echo $a;
echo 'Hey!';
Expected result:
----------------
Hey!
Actual result:
--------------
nothing
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60410&edit=1