Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94221 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 31917 invoked from network); 23 Jun 2016 12:19:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 23 Jun 2016 12:19:46 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 65.55.169.131 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 65.55.169.131 mail-bl2on0131.outbound.protection.outlook.com Received: from [65.55.169.131] ([65.55.169.131:3741] helo=na01-bl2-obe.outbound.protection.outlook.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 97/62-06825-0E3DB675 for ; Thu, 23 Jun 2016 08:19:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=RWSoftware.onmicrosoft.com; s=selector1-zend-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=8dDS2ke93uez8nIDHutZUZA5PlghAON4H+GiqeFz4J8=; b=w+Xxxgutalxcqdsp33Z/UZKfxHPPGp8NDErDGYhe9PLNmeiYjGO5uEQukDv0uL2lXlgOoStwL0UcNfpddqorGBYbj6Vqg0ibCAV2MijsgAcGugckVQsSp93VmdXxNZp5HiQvymuql2YXvWb8OSt0DsjEhK0MVVcHmBGoGR/UQ4s= Received: from BY2PR0201MB1784.namprd02.prod.outlook.com (10.163.72.26) by BY2PR0201MB1782.namprd02.prod.outlook.com (10.163.72.24) with Microsoft SMTP Server (TLS) id 15.1.523.12; Thu, 23 Jun 2016 12:19:40 +0000 Received: from BY2PR0201MB1784.namprd02.prod.outlook.com ([10.163.72.26]) by BY2PR0201MB1784.namprd02.prod.outlook.com ([10.163.72.26]) with mapi id 15.01.0523.019; Thu, 23 Jun 2016 12:19:40 +0000 To: PHP internals Thread-Topic: [PHP-DEV] ext/pcntl asynchronous sugnal handling Thread-Index: AQHRzUfWV1ktVwXl8U6quuwoZ8v1yg== Date: Thu, 23 Jun 2016 12:19:39 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=dmitry@zend.com; x-originating-ip: [132.245.81.165] x-ms-office365-filtering-correlation-id: 82d3a7eb-f4c6-401d-a700-08d39b60a681 x-microsoft-exchange-diagnostics: 1;BY2PR0201MB1782;6:1u5/GN5WyEB7n3wd1WOyLjkW0Vb3/RGstmen/wtH43qd+wYDaaTX47FA13ro44Dxm8Nq25bk0/r6FsZFhJpKNdc7ny2qcfNtqDm4BRMHpC4/8iavuBPEXr7wy80j4imM1VtxYDS5LivnhMEZMkxXdi9iLjKxvE7EWfx9pfqxzI0gUDFXRA7fQoYhSksVAc4dC06FZ5etn13v+XqnmMvRloEt86KYrD4iisnJxrKGZgV41CmdXyZmbZmNcJBLyP7QxURXjRxc//SIcGOLHjFlXVSyYW+JPF9d7nNK3GupUxAJdM56MX256P7VZVAHy8qR;5:LBHr31+K25Zfx0iOq7+VuwuY9gANobBaAYm2pYZtBT8B6QlaK11FRfC9WfynA9Mnm4L5sk8sFd7zSYNDmdiEUOl2ylXOA1W6d0YWN5ChOKEoyRUyEIcjcXRK9ZHv2JpoeD77EKtCvlprvQMygkevng==;24:r4+Xl8DwIVNi+3qeWM5J6uFN0Q2pbxFRpECH2bmiz1v/2Dey7AwDBIjBHaaHOS4j2BDlSQu7ZACy33+LOwni6F52Efb1wHonz4rKSTUqY18=;7:MNkQXdwXZY5MxE8Bh+BngU84jE5eZQL+e53T/k4JmfGPnGZ7DE6Zr0JoohT8oGP92eF8kZGb/ojDIXAIU1AWLQUKh6pHSFo4EpwKyXKCBNPdjvCfma/4HZZ+XRWAkJvUZa6RTJpzyUcP3/anKP5bdVWKTUOu11hx0eBae0k22BVAjCDc691j0YUp1/ZUHJhE+PCv1yY1Q9gw6nB94rNG1qQifqsHvrmIi3znrH2CMnDy0KFY52A2WQwhBRPhhi5p4CZvwRwdmxO/rny7GtPGRw== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1782; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(166708455590820)(192278398808882); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001);SRVR:BY2PR0201MB1782;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0201MB1782; x-forefront-prvs: 098291215C x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(7916002)(199003)(189002)(76576001)(97736004)(3660700001)(86362001)(5002640100001)(19617315012)(9686002)(5003600100003)(7846002)(7906002)(7736002)(3280700002)(74316001)(102836003)(6116002)(68736007)(8936002)(2900100001)(19580395003)(7696003)(586003)(2906002)(3846002)(8676002)(81166006)(19625215002)(99286002)(122556002)(15975445007)(101416001)(92566002)(66066001)(106116001)(87936001)(19627405001)(106356001)(105586002)(229853001)(33656002)(189998001)(10400500002)(16236675004)(450100001)(54356999)(50986999)(77096005)(107886002)(110136002)(11100500001)(81156014);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR0201MB1782;H:BY2PR0201MB1784.namprd02.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; received-spf: None (protection.outlook.com: zend.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_BY2PR0201MB178451EECDE759183C034594BF2D0BY2PR0201MB1784_" MIME-Version: 1.0 X-OriginatorOrg: zend.com X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Jun 2016 12:19:39.5256 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 32210298-c08b-4829-8097-6b12c025a892 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0201MB1782 Subject: [PHP-DEV] ext/pcntl asynchronous sugnal handling From: dmitry@zend.com (Dmitry Stogov) --_000_BY2PR0201MB178451EECDE759183C034594BF2D0BY2PR0201MB1784_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, Currently OS signals may be handled through ext/pcntl: - synchronously, calling pcntl_signal_dispatch() manually - asynchronously, if PHP scripts compiled with declare(ticks=3DN); The simple patch uses the recently added into Zend Engine ability and allow= s asynchronous signal handling without extra ZEND_TICKs (without any run-ti= me overhead). https://gist.github.com/dstogov/01d1002c1785f82eaac4b937ccaf418f Accepting this would probably need RFC. Thanks. Dmitry. --_000_BY2PR0201MB178451EECDE759183C034594BF2D0BY2PR0201MB1784_--