On 01/08/13 10:05, Tyler Romeo wrote:
On Wed, Jul 31, 2013 at 7:28 PM, Tim Starling tstarling@wikimedia.orgwrote:
The php.ini option assert.bail is 0 by default.
So? It's the same way in Java. You have to turn on assertions. It's kind of natural to assume that if assertions are off the won't cause fatal errors.
It shouldn't be possible to switch them off, and they shouldn't be off by default. I covered this in the 2012 thread. If the error is serious and unexpected, and likely to cause undesirable behaviour, then it should throw an exception.
Maybe we should just unconditionally call assert_options(ASSERT_CALLBACK, ...) from Setup.php and have the callback function throw an exception. But that would still leave the problem of acting like eval(), that's not configurable.
-- Tim Starling