Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69612 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 44620 invoked from network); 17 Oct 2013 12:40:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2013 12:40:39 -0000 X-Host-Fingerprint: 80.4.21.210 cpc22-asfd3-2-0-cust209.1-2.cable.virginmedia.com Received: from [80.4.21.210] ([80.4.21.210:14655] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/E6-12663-6CADF525 for ; Thu, 17 Oct 2013 08:40:39 -0400 To: internals@lists.php.net,Michael Wallner Message-ID: <525FDAC3.6060103@php.net> Date: Thu, 17 Oct 2013 13:40:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 References: <525FC834.4060501@php.net> <1534105.bNC2os93J1@rofl> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Posted-By: 80.4.21.210 Subject: Re: [PHP-DEV] Assertions From: krakjoe@php.net (Joe Watkins) On 10/17/2013 01:36 PM, Michael Wallner wrote: > On 17 October 2013 14:31, Patrick Schaaf 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