Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47452 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50375 invoked from network); 22 Mar 2010 15:55:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Mar 2010 15:55:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=troelskn@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=troelskn@gmail.com; sender-id=pass; domainkeys=bad 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: troelskn@gmail.com X-Host-Fingerprint: 209.85.218.216 mail-bw0-f216.google.com Received: from [209.85.218.216] ([209.85.218.216:64752] helo=mail-bw0-f216.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/57-14451-4F297AB4 for ; Mon, 22 Mar 2010 10:55:32 -0500 Received: by bwz8 with SMTP id 8so293960bwz.23 for ; Mon, 22 Mar 2010 08:55:29 -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 :content-transfer-encoding; bh=Bj3rkKFgvhdGQLwQ1C2O5RWmiT9+NYdtbxc2bFFngMs=; b=so9Xl5fSpC4XHRM/SRsIpgWasjXHCIGKyGEAfloBbmDpvEb6LSqZwqTD59eEyOEs2d C1BH3sRsuX08Ex5Umeso2IfD3L/ZfE5XSUnB+P0tK47EgT3cqDc0K50uB+/b2LdRXpxh m0Jh7HivSt+0C+q/sypAL21xvx4BY8RcsHSSw= 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:content-transfer-encoding; b=GEP0ov2D2rO2DMkNtVI56fBcPBwZRJnoRCfyhAnkBXAMLyln2H5KD4PQQcZFcP11gE uIj4aqeb+j/MrKbXV4hbCHSkvECc5pY0sadEqGMPZY0suUqzJLswhpC0iWbzVZ+dUCtW BCRo6ZNXemuffMXZrgqojmoR3HgQYYO0D3T5g= MIME-Version: 1.0 Received: by 10.204.127.70 with SMTP id f6mr1158770bks.76.1269273326455; Mon, 22 Mar 2010 08:55:26 -0700 (PDT) In-Reply-To: References: <98b8086f1003220751j73a8414es89b9b469c46f6630@mail.gmail.com> <1269270852.1575.141.camel@guybrush> <98b8086f1003220822s47665f87x696b70e9c13dadbd@mail.gmail.com> Date: Mon, 22 Mar 2010 16:55:26 +0100 Message-ID: <98b8086f1003220855ya52c266g8dc4cb866ed451ea@mail.gmail.com> To: Herman Radtke Cc: PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [PATCH] Raise warning first on "Maximum execution time exceeded" From: troelskn@gmail.com (troels knak-nielsen) On Mon, Mar 22, 2010 at 4:41 PM, Herman Radtke wro= te: >> What do you mean by "no option"? Otherwise yes, that's what it does. > Using sleep there is not a good practice. =A0Since the custom error > handler is triggered, there is no need for the sleep call anyways. So control isn't returned to the C-code before the php error handler finishes. Is that it? On Mon, Mar 22, 2010 at 4:41 PM, Herman Radtke wro= te: > Consider for a second what you are asking the language to do. =A0The > script has run out of memory and instead of halting you want it to > switch into an error handler to log the error. =A0What happens when that > error handler creates new variables or an object instance? =A0Where does > that memory come from? This patch handles timeout, not memory exhaustion. Although a similar solution for memory exhaustion could be useful as well. --=20 troels