Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88887 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 33327 invoked from network); 20 Oct 2015 15:11:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Oct 2015 15:11:51 -0000 Authentication-Results: pb1.pair.com header.from=laruence@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=xinchen.h@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.213.48 as permitted sender) X-PHP-List-Original-Sender: xinchen.h@zend.com X-Host-Fingerprint: 209.85.213.48 mail-vk0-f48.google.com Received: from [209.85.213.48] ([209.85.213.48:35337] helo=mail-vk0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CE/A7-54881-3B956265 for ; Tue, 20 Oct 2015 11:11:48 -0400 Received: by vkfw189 with SMTP id w189so11671664vkf.2 for ; Tue, 20 Oct 2015 08:11:44 -0700 (PDT) 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:content-type; bh=IkijHsD5KjncsdNfJG7OHYEpi4B5qQoe8zg+vJbCYQw=; b=J1Pfu+Ar0LfeXTt14+jZhpdf9UtTtCfSDpPFASqBymHvhEp6Uu/IqtF5yl9Ikk7MXi Ggzg6pbun5gOUrhpx672/6IsPVt/rw22bb2xUxJiF9gNFhPMFJr8EPKAsztdHQh/fbhz J29CA7iJt5gvaMGtpjs0vQxianndTYSH+OJW/rv1MlcM07Dt08mBnGtUb8X5ERYhDeqD hDghwha0q9CXcgVbLo1SDO7sDOzxU46q44VZ95kB3PWCZkRO48O4aMSpV9dLIQtRkkKS 3e34idcON+natLCmnFw6hojdoogmwk2rjFAklf5+jdUrcxoUxi3VeoHxnY0oqFwCNjp2 v/Ng== X-Gm-Message-State: ALoCoQn8YJmaJu88W5P7EOekhtYk280qUYlcy+3zWpo14wT1Bn5WCfpS7INEMk197yaX7gvAKErDBgK1GTErN+Oe5OX7+OKeJ8wOqNds3SH9Z1Mh8N9SFX8nZGkeSCH/ijx3D5BNrN0ISKIvjBPJeU+OGyPxtRVAjQmUnbuQ+7oTt0+M385L/Rg= X-Received: by 10.31.165.80 with SMTP id o77mr2301986vke.15.1445353904777; Tue, 20 Oct 2015 08:11:44 -0700 (PDT) Received: from mail-vk0-f43.google.com (mail-vk0-f43.google.com. [209.85.213.43]) by smtp.gmail.com with ESMTPSA id d133sm1040549vkf.17.2015.10.20.08.11.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Oct 2015 08:11:44 -0700 (PDT) Received: by vkex70 with SMTP id x70so11625669vke.3 for ; Tue, 20 Oct 2015 08:11:43 -0700 (PDT) X-Received: by 10.31.107.143 with SMTP id k15mr2392457vki.5.1445353903749; Tue, 20 Oct 2015 08:11:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.31.229.3 with HTTP; Tue, 20 Oct 2015 08:11:24 -0700 (PDT) In-Reply-To: References: Date: Tue, 20 Oct 2015 23:11:24 +0800 Message-ID: To: Derick Rethans Cc: Dmitry Stogov , PHP Developers Mailing List Content-Type: multipart/alternative; boundary=001a114783440219f405228aae25 Subject: Re: Issues with exceptions and overloading opcodes From: laruence@php.net (Xinchen Hui) --001a114783440219f405228aae25 Content-Type: text/plain; charset=UTF-8 Hey: On Tue, Oct 20, 2015 at 10:45 PM, Derick Rethans wrote: > Hi! > > When hacking on Xdebug for PHP 7, I ran into some issues where PHP would > just spin around. This happens when there is an exception, and I use > overloaded opcodes. I wrote a small example extension at > https://github.com/derickr/php-minimal-opcode-overloading-example with a > test case > ( > https://github.com/derickr/php-minimal-opcode-overloading-example/blob/master/tests/test.php > ) > that shows that something is looping in executing opcodes, as the > HANDLE_EXCEPTION iirc doesn't advance to the next opline. I believe this > is a recent enough change, as it only started happening after I upgraded > from about RC1 to latest master. > > Would you care to have a look? > This is introduced by a fix made by Bob, https://github.com/php/php-src/commit/808f62bb Bob, I am going to revert this for now, since you didn't include a test script to show where the problem was, I am not sure why you made this? thanks > > cheers, > Derick > > -- > http://derickrethans.nl | http://xdebug.org > Like Xdebug? Consider a donation: http://xdebug.org/donate.php > twitter: @derickr and @xdebug > Posted with an email client that doesn't mangle email: alpine > -- Xinchen Hui @Laruence http://www.laruence.com/ --001a114783440219f405228aae25--