Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87712 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 85895 invoked from network); 11 Aug 2015 18:00:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Aug 2015 18:00:19 -0000 Authentication-Results: pb1.pair.com header.from=php_lists@realplain.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=php_lists@realplain.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain realplain.com from 68.114.190.26 cause and error) X-PHP-List-Original-Sender: php_lists@realplain.com X-Host-Fingerprint: 68.114.190.26 mtaout001-public.msg.strl.va.charter.net Received: from [68.114.190.26] ([68.114.190.26:48181] helo=mtaout001.msg.strl.va.charter.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4A/43-00789-2383AC55 for ; Tue, 11 Aug 2015 14:00:19 -0400 Received: from impout003 ([68.114.189.18]) by mtaout001.msg.strl.va.charter.net (InterMail vM.9.00.020.01 201-2473-160) with ESMTP id <20150811180016.SWQR28847.mtaout001.msg.strl.va.charter.net@impout003>; Tue, 11 Aug 2015 13:00:16 -0500 Received: from pc1 ([96.35.251.86]) by impout003 with charter.net id 3W051r00D1sc0so01W05VK; Tue, 11 Aug 2015 13:00:16 -0500 X-Authority-Analysis: v=2.1 cv=Pvkdbm83 c=1 sm=1 tr=0 a=Is5gsZaFXO8aPum+t7Tz+g==:117 a=Is5gsZaFXO8aPum+t7Tz+g==:17 a=hOpmn2quAAAA:8 a=BCPeO_TGAAAA:8 a=8nJEP1OIZ-IA:10 a=zUv2nSzzcMxDJfIVPyEA:9 a=wPNLvfGTeEIA:10 Message-ID: <8BE12FDCDC5C457282790368866BD61E@pc1> To: Cc: "Dmitry Stogov" References: Date: Tue, 11 Aug 2015 13:00:05 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 Subject: Re: [PHP-DEV] Parameter parsing for zval type? From: php_lists@realplain.com ("Matt Wilmas") Hi again, ----- Original Message ----- From: "Matt Wilmas" Sent: Tuesday, August 11, 2015 > Hi Dmitry, all, > > Help me understand this. :-) It's been more puzzling to me recently since > just coming to the part of optimizing traditional ZPP (sharing part with > FAST_ZPP...). > > With the FAST_ZPP inline macros, why is there a Z_PARAM_ZVAL and > Z_PARAM_ZVAL_DEREF? It seems the zpp 'z' specifier is always like > ZVAL_DEREF, right? So Z_PARAM_ZVAL has no equivalent in traditional zpp. > At the very least, this would seem to suggest a difference in > behavior/functionality. But I haven't found any (or bug reports, if tests > didn't cover something). Oops! No, plain zpp 'z' does not have ZVAL_DEREF() applied, of course. But it's also using zend_parse_arg_zval_DEREF(), which is wrong... (in the case of "z!" with reference to IS_NULL?). > At first I assumed Z_PARAM_ZVAL would keep IS_REFERENCE types, since it > doesn't do ZVAL_DEREF(), but this obviously isn't happening with > references. (It seems they're getting DEREF()'d in VM when sending params, > I guess...?) Still stands though that IS_REFERENCE doesn't seem to get through anyway (and would break functions). Is any ZVAL_DEREF() *not* necessary? - Matt