Re: RE: RFC: expectations/assertions

From: Date: Tue, 04 Feb 2014 11:29:35 +0000
Subject: Re: RE: RFC: expectations/assertions
References: 1  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi Joe,

On Sun, Feb 2, 2014 at 8:26 PM, Joe Watkins <[email protected]> wrote:

>         https://wiki.php.net/rfc/expectations
>

Current assert() may call functions

php > assert(version_compare(PHP_VERSION, '4', '<'));

Warning: assert(): Assertion failed in php shell code on line 1

but it seem not closure like this

php > assert(function() {return 2>1;});
php > assert(function() {return 2<1;});

Is it possible write closure like this?

Regards,

--
Yasuo Ohgaki
[email protected]


Thread (44 messages)

« previous php.internals (#72191) next »