Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84775 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 43454 invoked from network); 14 Mar 2015 12:15:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Mar 2015 12:15:08 -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 209.85.220.176 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.176 mail-vc0-f176.google.com Received: from [209.85.220.176] ([209.85.220.176:33119] helo=mail-vc0-f176.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 29/72-29409-A4624055 for ; Sat, 14 Mar 2015 07:15:06 -0500 Received: by mail-vc0-f176.google.com with SMTP id im6so370177vcb.7 for ; Sat, 14 Mar 2015 05:15:03 -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=VM1HhuJ9QancdB1DQLZrQPcVxvPDdHyJkk6J2V3ml3c=; b=B7EMt+FBoBwnbRvy4r74juyUjQmkXBDAwdkyKeNU8TK+Cxo7NHP/F3YaVJv4UN4nfG SyKiYA9eH9NQnH8ur4JQPg7/avdkzPZc3bQX7kQrICQZKYUnQZHDTXxal88qzK1OP6T5 hw1fG0aYDsehAjpS0W6zw2mmVAZdFBXKt9g3PSzRjKidLo5X3jxVhs1xUla4Eq1p7vRr QaHH5lnLj7W/5I9l5A6JpmVCxg2TgdmyIaZJitt5/itaVSWKDGteInoXYJGBg/liVbLQ nIcQBEw23gRARlpJhUWtd67wqmh3iGl9rpDs8E5AQnRL29bkw/FoA0XyxBzrXEPOZymK 50mA== X-Gm-Message-State: ALoCoQk5bQa5DxayIdANXLF6TlvLrMX3J2fc5+ZnfOowOkGyuULhJGm/nquSViD7jb6Vh+ODB6n8XSY41BEsGYEIGzYU4UnwDBiv7MWkbOlcewIQqrsr2nN08lY18GIisKQuY7m8XsSyAm8ySQpoKrFGgVfPABmGxg== MIME-Version: 1.0 X-Received: by 10.52.61.137 with SMTP id p9mr26550704vdr.68.1426335303375; Sat, 14 Mar 2015 05:15:03 -0700 (PDT) Received: by 10.52.113.231 with HTTP; Sat, 14 Mar 2015 05:15:03 -0700 (PDT) Received: by 10.52.113.231 with HTTP; Sat, 14 Mar 2015 05:15:03 -0700 (PDT) In-Reply-To: References: Date: Sat, 14 Mar 2015 15:15:03 +0300 Message-ID: To: Laruence Cc: PHP Internals , Bob Weinand Content-Type: multipart/alternative; boundary=001a1136b57416bc0905113e91a5 Subject: Re: [PHP-DEV] Drop Multiply VM kind support From: dmitry@zend.com (Dmitry Stogov) --001a1136b57416bc0905113e91a5 Content-Type: text/plain; charset=UTF-8 In general, it's possible to implement necessary function for GOTO executor as well. It's just not trivial. Thanks. Dmitry. On Mar 14, 2015 3:06 PM, "Xinchen Hui" wrote: > Hey: > > On Sat, Mar 14, 2015 at 8:01 PM, Bob Weinand wrote: > >> Am 13.03.2015 um 05:01 schrieb Xinchen Hui : > >> > >> Hey: > >> > >> We have CALL SWITCH GOTO vm kind supports for long time. > >> > >> And we use CALL for default. > >> > >> SWITCH GOTO seems useless now, and brings us some troubles while > >> maintaining . > >> > >> And also could make some extension unable to work, like in phpdbg: > >> > >> PHPDBG_G(vmret) = > execute_data->opline->handler(execute_data); > >> > >> > >> So, maybe it's time for us to remove GOTO and SWITCH at all? > >> > >> thanks > >> > >> -- > >> Xinchen Hui > >> @Laruence > >> http://www.laruence.com/ > > > > Not sure whether it's useless, I'm not exactly aware of the performance > differences. > > But we would have to add some proper build-time check for phpdbg whether > we're in CALL mode or not. [when you're using phpdbg on that machine, you > probably aren't in a high-performance production environment anyway.] > > > > (Like with a clean #error message etc.) > > > After the latest fix by Dmitry, there will be no need for that. > > because, if in non CALL mode, phpdbg won't be able to built anymore. > > thanks > > Bob > > > > -- > Xinchen Hui > @Laruence > http://www.laruence.com/ > --001a1136b57416bc0905113e91a5--