Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47451 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41038 invoked from network); 22 Mar 2010 15:45:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Mar 2010 15:45:15 -0000 Authentication-Results: pb1.pair.com header.from=tyra3l@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=tyra3l@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.216 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: tyra3l@gmail.com X-Host-Fingerprint: 209.85.218.216 mail-bw0-f216.google.com Received: from [209.85.218.216] ([209.85.218.216:54492] helo=mail-bw0-f216.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1D/25-14451-78097AB4 for ; Mon, 22 Mar 2010 10:45:13 -0500 Received: by bwz8 with SMTP id 8so282534bwz.23 for ; Mon, 22 Mar 2010 08:45:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=GN7FelAZ8T461Bc2W1m5M1ry9+8L0uGsdsoCgKmvX6s=; b=RcgmxlruLEgnrUoZ3LK2D5R9A23cLJgoJSXCNYbSA64jGW9bQsL11Uou2/iDocCdfN GIRe3Ko4UC/Z3HeFCeKDQizw2oBBjeRw9VKykrIXpBOgSh5YWeRkge/eYXZROwNKkjEf 4Yp+vr+on4pkzfsChCK0pnPPStNFDy4PQj9FI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Te4dtp7nwfBu9NbP6AWDO+z58fzlEm1XXSA6UrQvdvSMpeHKMn7nlvWtzBsCIdqtNP oilz2k2VdZ0H3MLwbEan322BBtQlKyyjPjdh42nkgSQYxCYQ6wzmU4aKZKTZ7hZbSv3M LVly8i4rzeEHjJkAUfxlsbTnv0RGbphEPgw4A= MIME-Version: 1.0 Received: by 10.204.33.194 with SMTP id i2mr2247697bkd.140.1269272707057; Mon, 22 Mar 2010 08:45:07 -0700 (PDT) In-Reply-To: <1269270557.1575.136.camel@guybrush> References: <98b8086f1003220751j73a8414es89b9b469c46f6630@mail.gmail.com> <4BA78611.9070805@daevel.fr> <1269270557.1575.136.camel@guybrush> Date: Mon, 22 Mar 2010 16:45:06 +0100 Message-ID: To: =?UTF-8?Q?Johannes_Schl=C3=BCter?= Cc: "Olivier B." , internals@lists.php.net Content-Type: multipart/alternative; boundary=00032555a0cad3c8e00482659409 Subject: Re: [PHP-DEV] [PATCH] Raise warning first on "Maximum execution time exceeded" From: tyra3l@gmail.com (Ferenc Kovacs) --00032555a0cad3c8e00482659409 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 2010/3/22 Johannes Schl=C3=BCter > Hi, > > On Mon, 2010-03-22 at 16:00 +0100, Olivier B. wrote: > > well, maybe we should provide a better behaviour for all fatal errors, = no > ? > > A frequent one I see is the fatal error for calls like "$obj->method()"= , > > when $obj is not an object. > > > > Isn't possible to allow catching of fatal errors, like other errors ? > > Fatal errors might let the engine in some undefined state. The only safe > thing we can do is terminate the current script. fror other cases we > have catchable fatal errors. Maybe there are a few more cases where > fatal errors can be made catchable fatal errors, but these are case by > case decisions. > > Then why is this snippet working: func(); echo 456; script execution can continue on fatal error. you can use the register_shutdown_function, or the ob_start function callback param to continue the execution after an uncatchable fatal error. I think either this kind of errors should be catchable(except the errors in the engine itself, not in the userland) or the above mentioned two method shouldn't be working. Tyrael > johannes > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --00032555a0cad3c8e00482659409--