Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88897 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 61415 invoked from network); 20 Oct 2015 21:22:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Oct 2015 21:22:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.223.170 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.223.170 mail-io0-f170.google.com Received: from [209.85.223.170] ([209.85.223.170:33930] helo=mail-io0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7E/22-45576-890B6265 for ; Tue, 20 Oct 2015 17:22:33 -0400 Received: by iow1 with SMTP id 1so37170677iow.1 for ; Tue, 20 Oct 2015 14:22:30 -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:date :message-id:subject:from:to:cc:content-type; bh=npDhmh8arWz5FUsi0aMim9D93SnkWl/FiwZJzFALSII=; b=JdGgLcwsTgfFtJUf2JBsaAsHS7ERUgm5AKJ0GpD+IWdn6Fgx2Pg/+o1ASleaPX4imk HNX4dNIEjRfV5WbKnZObZmoO6Q4rA9+vdUss6CUqApGVt97Z8GIoNJy0QyFRfP6ogLSO 1q/8kwSjzDEwgmHukkW7VJ7wBpb4GOn4h3CNUGRkbyGXo5D/A9atvcuE+O+kpLbpe2XL W1hxrcm5jOM+/+telfCL3tYId/D+TjNlKDIABW7HlyndoLLuT54J4tO0yN29NQ4D/C5u tfc5FiyJS7a8Yr+VPMEWhmojIW+WKKJcX01D3kyJ/S24p+5aGPV58ePqj69aDfN3wVuD PRAg== X-Gm-Message-State: ALoCoQktP/SAr5kzFyuJ30nN73MfgdFbaRjbw4pVwixmchxstvU4apBFtQpSVIDyY0lbu1W6r7xa20JBNU+hqJu8fnkLBO3757k2+lYTb39n2eAs2bi0tzrB7iuXoXWuuKvFO/B2TINTY+kP7yT07SYive9YlO7hjN48sH5mO/IirwI44I4AqL8= MIME-Version: 1.0 X-Received: by 10.107.15.17 with SMTP id x17mr376363ioi.196.1445376149950; Tue, 20 Oct 2015 14:22:29 -0700 (PDT) Received: by 10.50.73.166 with HTTP; Tue, 20 Oct 2015 14:22:29 -0700 (PDT) Received: by 10.50.73.166 with HTTP; Tue, 20 Oct 2015 14:22:29 -0700 (PDT) In-Reply-To: References: Date: Wed, 21 Oct 2015 00:22:29 +0300 Message-ID: To: Laruence Cc: Derick , PHP Internals , Bob Weinand Content-Type: multipart/alternative; boundary=001a113f1e20fc350905228fdb5e Subject: Re: Issues with exceptions and overloading opcodes From: dmitry@zend.com (Dmitry Stogov) --001a113f1e20fc350905228fdb5e Content-Type: text/plain; charset=UTF-8 Hi Xinchen, I think, we discussed that patch with Bob, and it looked right. May be we missed some edge case... It's not possible to write a test case for it. Thanks. Dmitry. On Oct 20, 2015 6:11 PM, "Xinchen Hui" wrote: > 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/ > --001a113f1e20fc350905228fdb5e--