Hi all,
On Wed, Feb 5, 2014 at 7:53 AM, Yasuo Ohgaki <[email protected]> wrote:
> php > assert('function() {return FALSE;}');
> php > assert('function() {return TRUE;}');
>
> It does not work, but
>
> php > assert(eval('function() {return FALSE;};'));
>
> Warning: assert(): Assertion failed in php shell code on line 1
>
> so closure in eval() works. I don't see reason not to allow closure
> directly.
> It only seems inconsistent to me.
>
Added this to inconsistent behaviors RFC to track.
https://wiki.php.net/rfc/inconsistent-behaviors#assert
Regards,
--
Yasuo Ohgaki
[email protected]