Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94272 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52136 invoked from network); 27 Jun 2016 11:05:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jun 2016 11:05:48 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.218.67 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.218.67 mail-oi0-f67.google.com Received: from [209.85.218.67] ([209.85.218.67:35307] helo=mail-oi0-f67.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id EC/81-40393-B8801775 for ; Mon, 27 Jun 2016 07:05:47 -0400 Received: by mail-oi0-f67.google.com with SMTP id d132so29746803oig.2 for ; Mon, 27 Jun 2016 04:05:47 -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=HVrsiJRM2bEsm0h4ZYp1pVA4raNC/5Uq0x9KMdEqmSM=; b=xIVMaRpSFX/2I/l7yHuRQkMlLhNlkrqMF754QF+7RZ7gjnIbBKAXasvpSfnnzrFDCQ ljfNFmPxweBONl/i7CBp93iVK/koczjySr74ksP+J2db9yV3x4G176yKclUVGOYG3VPU qx1qvj2z7w4qSLGM0tifgsGMvDwpNjcD4ZJgSRHtdYfkURMiayEWpZNazBdkMkQvtYmn 1pw50u5Z6x3dHaFf+OEgMdLRktYM3QzYvjnIQQbBpyTdsOyEbKwrma/3//NcE3y8/yDp oiGo0dKi20Exln5WqvqYl7nsant+QsqqkGDw82VRla9l3/uZxs6tZasLY6Qwn1puC0ra el/w== 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=HVrsiJRM2bEsm0h4ZYp1pVA4raNC/5Uq0x9KMdEqmSM=; b=HsC0Mrv0nGc8ILM3iYzVyK2HA8FN4lZ9EDSptTcrslGVWSdcNf+5p9qnNW6NzntYNu 5LiauFhkszdTnWqJgBrVW9EiA+RBr7SdajaaQZnWf25tAtzC6VEiO4xewzNlYUnnwhVw QXFfOIJpQke3ekf2tUuEeFQvkkVMySpcrnwbbrA3DK5CjWg21mGZWoFylInDKwooqMa+ +yrI+xXzQ8+mXoOfNuXUuQQD1Fdp7DAXqGjemedo3ceGAXDDC+g+mqEwJtKdWgaVF3mW 9Wh/gzNwIkUa233HIqeyDlPdHgoxtyQVEp4kDx+7XFEg792lz7MaOsTxkkb2Bdc81trU uVOQ== X-Gm-Message-State: ALyK8tIdiW45N4R9NH61lox/wk9RAwabbe+IcpGacBu2KvfPvQBqjdAu3HBHhjYipNoKNmTJ+4J88r6vukjEVQ== X-Received: by 10.157.61.74 with SMTP id a68mr113938otc.107.1467025544803; Mon, 27 Jun 2016 04:05:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.190.3 with HTTP; Mon, 27 Jun 2016 04:05:44 -0700 (PDT) In-Reply-To: References: Date: Mon, 27 Jun 2016 18:05:44 +0700 Message-ID: To: Joe Watkins Cc: Bob Weinand , PHP internals , Dmitry Stogov Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Asynchronous Signal Handling (withiut TICKs and any additional overhead). From: pierre.php@gmail.com (Pierre Joye) On Mon, Jun 27, 2016 at 5:08 PM, Joe Watkins wrote: > Morning, > > How is the impact wider than ext/pcntl ? The implementation is only in pctnl. The feature is used indirectly by the engine and makes it a core feature. Quote from the RFC: "Zend Engine in PHP 7.1 was extended with ability of safe time-out and interrupt handling. Actually, PHP VM checks for EG(vm_interrupt) flag on each loop iteration, user function entry or internal function exit, and call callback function if necessary. I propose to use this ability to implement asynchronous signal handling. Registered signal handlers are going to be called at some points during user script execution without any overhead." and the test: