Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84607 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 86317 invoked from network); 12 Mar 2015 02:03:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Mar 2015 02:03:17 -0000 Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.179 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.223.179 mail-ie0-f179.google.com Received: from [209.85.223.179] ([209.85.223.179:35786] helo=mail-ie0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4C/64-64353-5E3F0055 for ; Wed, 11 Mar 2015 21:03:17 -0500 Received: by ieclw3 with SMTP id lw3so9083277iec.2 for ; Wed, 11 Mar 2015 19:03:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=kTrDw4pptqKdNllSudpQatNriD6tg75W23a5nyqmK0w=; b=cx4AqFQNLM6A4FoiOKaYsLU9U1FFyjLoIALD3BRN3U9lWr/cOkHQwg2c4T1CzJERc4 /oN+mkTzRS+51TNmpfCV/+8W24/Qaa0Ls+td6bFLZI5F52IhsUj4k87BUyDB3d/Lf9Ru 4wjmxafZcGTnKJyDdUBoGbYQ/gJJzMTRF204iKdd26k0n2XSl1Rd8lDPpJhuc3YMbjbB 6Qoj2cXVjO4OJjkMUfbWCHRdEg3djM/Un00mOHQ5J0BBfkzS8jy+wD8iSljzcQ2Qf9nd rVh96lRzgP5irbvRVfmY/GLXPWTi+UTlMPllZ6TEsdeWC4Yp42NQ7vjvbTZNPvu6/bUa 8D8Q== MIME-Version: 1.0 X-Received: by 10.50.25.166 with SMTP id d6mr48961044igg.41.1426125786813; Wed, 11 Mar 2015 19:03:06 -0700 (PDT) Received: by 10.64.55.200 with HTTP; Wed, 11 Mar 2015 19:03:06 -0700 (PDT) Received: by 10.64.55.200 with HTTP; Wed, 11 Mar 2015 19:03:06 -0700 (PDT) In-Reply-To: References: Date: Wed, 11 Mar 2015 19:03:06 -0700 Message-ID: To: PHP Internals , Dmitry Stogov , Rasmus Lerdorf , Anatol Belski , Nikita Popov , Xinchen Hui Content-Type: multipart/alternative; boundary=047d7bdca298ed9e8805110dc8b6 Subject: Re: [PHP-DEV] Safe execution timeout handling From: smalyshev@gmail.com (Stas Malyshev) --047d7bdca298ed9e8805110dc8b6 Content-Type: text/plain; charset=UTF-8 On Mar 11, 2015 7:01 PM, "Stas Malyshev" wrote: > > Hi! > > > Instead of throwing zend_error() from signal handler, now we just set > > EG(vm_interrupt) and EG(timed_out) flags. PHP VM checks EG(vm_interrupt) > > flag on each JMPx instruction (potential loop iteration) and then throws > > JMPs are not the only operations that can transfer control and thus > potentially form a loop. Oops, please ignore this, it was a draft sent accidentally. --047d7bdca298ed9e8805110dc8b6--