Re: Declare minimum PHP version required?

From: Date: Wed, 05 Feb 2014 07:21:34 +0000
Subject: Re: Declare minimum PHP version required?
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-72245@lists.php.net to get a copy of this message
Hi Dmitry, On Wed, Feb 5, 2014 at 3:38 PM, Dmitry Stogov <dmitry@zend.com> wrote: > but we can write: > > $f = function() {return FALSE;}; > assert($f()); > I'll use this form, if assert() does not support direct closure call. Direct call seems cleaner to me. assert(function() { // Do complex assertion here. }; Users are used to this form because of JavaScript popularity. It's a small difference, but I hope new assert() supports this :) Regards, P.S. Thank you for the declare(pre/post_hook) comment. I'll look into VM when I have time. -- Yasuo Ohgaki yohgaki@ohgaki.net

« previous php.internals (#72245) next »