Re: About assert()

From: Date: Wed, 14 Feb 2018 16:29:32 +0000
Subject: Re: About assert()
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-101871@lists.php.net to get a copy of this message
> In PHP 7 only foo() will be in the backtrace. In PHP 5 assert will be > listed as well. > > What you are proposing has already been done. It's also why > zend.assertions has three settings: 1: on, -1: off, 0: emulate PHP 5. > Unless you have code on your hands that is breaking when the -1 setting is > used, the 0 setting should never be used. I don't think that's true. 0 can be used to dynamically switch assertions on and off, which can be useful in some applications. Regards, Niklas

« previous php.internals (#101871) next »