Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94222 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33766 invoked from network); 23 Jun 2016 12:28:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jun 2016 12:28:13 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.194 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.161.194 mail-yw0-f194.google.com Received: from [209.85.161.194] ([209.85.161.194:33347] helo=mail-yw0-f194.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C9/C2-06825-CD5DB675 for ; Thu, 23 Jun 2016 08:28:12 -0400 Received: by mail-yw0-f194.google.com with SMTP id i12so10508271ywa.0 for ; Thu, 23 Jun 2016 05:28:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=KLd9WUPWvw53JnY4JodpFppqEKXJZF50Ht04FWOWPg0=; b=g/+4kt65gYT38SDLixF8JIt+f3owWW5d9mmeNER3uo0Se5l81/3Ec5y7UdYGfEzlLJ HeDCWFau8s/SySWp4gs1dKJjSzrEVsy5hl4+yWr1ysAOrzS9yJRoZQkx81bttlO/KfKu wSW87Ji9KKlw43p+dVUeEokkBRK7bkyflcQcGtSRjhtwzW2FP1a0CzUkWgPt/VQC9bV/ +eCv4DbfsG+wm8xZwh760hr8CJIHzeWABGA5BpIoTeQa3p9+df4X5mUVL7wSlALenJc/ 0132d+hARngRSC4syfqtZMusDRtcMgl+7PGMhPtapftiajuxl47WUghxLS4eC2wK3ZPm azXQ== 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:from:date :message-id:subject:to:cc; bh=KLd9WUPWvw53JnY4JodpFppqEKXJZF50Ht04FWOWPg0=; b=FTuAR5u6si8lBbL79WkVXtqEwfJN3fOk/N+U4a8S4tySCPxiEjlfIEINJI9k+Fg5s/ R5xEKOVvhtoXkMrcbcoUZIjml2wc/WCs8EPbHySsaFsM5K2DQnxJ2obOe5mBt92iTpyN U5HbYc8X7j8zec6RDxIAlgIcpS/SjBxDLRv/riv7ISkb42Xau5vMOGvhoeu56uxzhW3e o/5tV4tD2GnG0rCPbAYtuySSa4m+I1b8UArAOxJAhSOwMwDIErHOadKn7b/IDMy5SUkU HAOlV8Q27LNKKAeflHru4LRBLl9mGwvcbkb10CEmd+fRjH/zBzu5D3uzn8EOCNPi2uog ndGQ== X-Gm-Message-State: ALyK8tIpOLSv+7x0SCNcMnoiMqesnNz4NyXTLrfD5s2uWlW4zZK6mKYOYOqdfzTdfIA4QPY0MgTu3j2UHlM1TQ== X-Received: by 10.129.89.9 with SMTP id n9mr19190433ywb.109.1466684889986; Thu, 23 Jun 2016 05:28:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.13.242.129 with HTTP; Thu, 23 Jun 2016 05:28:09 -0700 (PDT) In-Reply-To: References: Date: Thu, 23 Jun 2016 14:28:09 +0200 Message-ID: To: Dmitry Stogov Cc: PHP internals Content-Type: multipart/alternative; boundary=001a11471a1edd7d5a0535f12fd8 Subject: Re: [PHP-DEV] ext/pcntl asynchronous sugnal handling From: nikita.ppv@gmail.com (Nikita Popov) --001a11471a1edd7d5a0535f12fd8 Content-Type: text/plain; charset=UTF-8 On Thu, Jun 23, 2016 at 2:19 PM, Dmitry Stogov wrote: > Hi, > > > Currently OS signals may be handled through ext/pcntl: > > - synchronously, calling pcntl_signal_dispatch() manually > > - asynchronously, if PHP scripts compiled with declare(ticks=N); > > > The simple patch uses the recently added into Zend Engine ability and > allows asynchronous signal handling without extra ZEND_TICKs (without any > run-time overhead). > > > https://gist.github.com/dstogov/01d1002c1785f82eaac4b937ccaf418f > > > Accepting this would probably need RFC. > Line 43 should probably call orig_interrupt_function. I'm +10 on this change. Using ticks for interrupt handling was horrible, and since PHP 7 doesn't really work anyway. Nikita --001a11471a1edd7d5a0535f12fd8--