Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103944 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 76968 invoked from network); 31 Jan 2019 21:32:10 -0000 Received: from unknown (HELO xdebug.org) (82.113.146.227) by pb1.pair.com with SMTP; 31 Jan 2019 21:32:10 -0000 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 5694810C3FC; Thu, 31 Jan 2019 18:12:06 +0000 (GMT) Date: Thu, 31 Jan 2019 18:12:05 +0000 (GMT) X-X-Sender: derick@singlemalt.home.derickrethans.nl To: Dmitry Stogov cc: PHP internals In-Reply-To: <071e8b91-d774-b077-ad15-51fe300fb901@zend.com> Message-ID: References: <071e8b91-d774-b077-ad15-51fe300fb901@zend.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [PHP-DEV] [RFC] JIT From: derick@php.net (Derick Rethans) On Thu, 31 Jan 2019, Dmitry Stogov wrote: > > > On 1/31/19 8:08 PM, Derick Rethans wrote: > > On Thu, 31 Jan 2019, Dmitry Stogov wrote: > > > >> I'm glad to finally propose including JIT into PHP. > >> > >> https://wiki.php.net/rfc/jit > > > > I don't see anywhere in this RFC how it would affect thigns that do > > sneaky things with internals, such as Xdebug. How is that going to be > > affected? > > > > I suppose Xdebug should work on non-JIT-ed versions of the functions. > Even JVM deoptimizes to bytecode when debugging. So, in that case, I think I would need to be able to instruct the PHP JIT engine to be turned off. Perhaps through an API? Similarly, I think it might be useful for OPcache as well, as I am getting more people confused why some breakpoints don't work, or variables don't exist: https://bugs.xdebug.org/view.php?id=1609 cheers, Derick