Re: Assertions

From: Date: Thu, 17 Oct 2013 12:40:35 +0000
Subject: Re: Assertions
References: 1 2 3 4 5  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
On 10/17/2013 01:36 PM, Michael Wallner wrote:
On 17 October 2013 14:31, Patrick Schaaf <[email protected]> wrote:
However, I still continue to think that assertions should stay
assertions,
aka : run time fatal errors when enabled.
Yes! And Coredump! And a debugger that lets me load that later + examine stack and all other state!
Hm seriously, optional (sort of) coredumps on fatals would be cool. AssertionExceptions have a stack trace ...
Obviously, coredumps don't make a whole lot of sense for PHP programmers, but I guess you knew that, which is why you say sort of ... Being that ZEND_ASSRT is an opcode, xdebug could override it and provide the functionality you want from failed assertions, it is out of the scope of core I think ... Cheers Joe

Thread (36 messages)

« previous php.internals (#69612) next »