Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77851 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58776 invoked from network); 10 Oct 2014 12:52:21 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Oct 2014 12:52:21 -0000 Authentication-Results: pb1.pair.com smtp.mail=danack@basereality.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=danack@basereality.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain basereality.com from 74.125.82.50 cause and error) X-PHP-List-Original-Sender: danack@basereality.com X-Host-Fingerprint: 74.125.82.50 mail-wg0-f50.google.com Received: from [74.125.82.50] ([74.125.82.50:54308] helo=mail-wg0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FE/75-29144-386D7345 for ; Fri, 10 Oct 2014 08:52:20 -0400 Received: by mail-wg0-f50.google.com with SMTP id a1so3729708wgh.21 for ; Fri, 10 Oct 2014 05:52:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=PIfP94UcPoL/Z9iy7R8l3jpY0KGa4MGdzySCy5N1quc=; b=EP3geVXpSbA4USHN2bGveFzFIr1ZwX5ixWdSvE1YfE4/Y0X8p/sbbwakGLk4h9S1RN qOLqSf3FodYDT6a2C2wCPLp3c+7wVx1DBq+KMYDwX7OMCk+P9MwpdSbiH4PFe1ROwgLG JPkXNd0V2+H0osdf2iZ95YVGr6n3+TwHx0W55CluBfDoROJmfh1xWobF93prUPNSftMm G9blHrRKFSKZQpF71lbUv8vqmoyLCRiAEzkx4llqYx35qRyZFi9EL/bBMDJpoaNZ7C0V AaDm89O2RNG50yD2kEzFCLpAa34mEohUEDzieIXiY5Ob3GrZb5EoGw3o5rd9Nh2CusBn cyjg== X-Gm-Message-State: ALoCoQlEdtRqkc9YXKXXyNRSKrgliQCUjy//151/iLX9SoisW3f+ZPTx6q1xgh+quPGb22HEuiCN MIME-Version: 1.0 X-Received: by 10.194.110.104 with SMTP id hz8mr4758389wjb.12.1412945530731; Fri, 10 Oct 2014 05:52:10 -0700 (PDT) Received: by 10.216.82.1 with HTTP; Fri, 10 Oct 2014 05:52:10 -0700 (PDT) X-Originating-IP: [78.145.246.77] In-Reply-To: References: <543320AB.4070606@sugarcrm.com> Date: Fri, 10 Oct 2014 13:52:10 +0100 Message-ID: To: Patrick Schaaf Cc: Nikita Popov , internals , Stas Malyshev Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Exceptions in the engine From: danack@basereality.com (Dan Ackroyd) Patrick wrote: > I would love to be able to catch, at toplevel. with an error handler or > otherwise, both the memory limits exceeded and time limit exceeded cases. +1, as the kids today say. I don't think that it should require any new code - we already have the ability to extend the memory limit dynamically: ini_set('memory_limit', (ini_get('memory_limit')+1).'M'); And similarly for set_time_limit(). Having the ability to catch these types of errors and do whatever is required to exit the program cleanly, is far superior to having a fatal error. cheers Dan