Edit report at https://bugs.php.net/bug.php?id=60410&edit=1

 ID:                 60410
 Updated by:         fel...@php.net
 Reported by:        zarzu dot razvan at gmail dot com
 Summary:            script stops when closure used without open brackets
 Status:             Open
 Type:               Bug
 Package:            Variables related
 Operating System:   Windows XP
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Check if your display_errors is set to 0 (zero)


Previous Comments:
------------------------------------------------------------------------
[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

Reply via email to