Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55369 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51874 invoked from network); 11 Sep 2011 21:04:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Sep 2011 21:04:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=keisial@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=keisial@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 as permitted sender) X-PHP-List-Original-Sender: keisial@gmail.com X-Host-Fingerprint: 74.125.82.170 mail-wy0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:62323] helo=mail-wy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6E/10-49174-C522D6E4 for ; Sun, 11 Sep 2011 17:04:28 -0400 Received: by wyg8 with SMTP id 8so1826590wyg.29 for ; Sun, 11 Sep 2011 14:04:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=PGBc7bETd2ksUSg9rkZEii8oX2VyW7bIwt65NPhBDWk=; b=WIbn1O1P6jeJAgouv8AxuG1mYONDcKq9fr8QaV5Sk6pZD4Z9he4nmF4JT11HBc7LNq 3LiIsSHYVB1V6cMMTntQHTB8wisjkpW4AgcYhiSylb8fKQLiwJhjoIcp0kQZfLG5cITY aHh7dUh5sOkvPfZvXKwqhWx+IJxtsIm34DtWo= Received: by 10.227.6.215 with SMTP id a23mr1891677wba.44.1315775063141; Sun, 11 Sep 2011 14:04:23 -0700 (PDT) Received: from [192.168.1.26] (132.Red-83-55-231.dynamicIP.rima-tde.net [83.55.231.132]) by mx.google.com with ESMTPS id ev5sm14178657wbb.11.2011.09.11.14.04.20 (version=SSLv3 cipher=OTHER); Sun, 11 Sep 2011 14:04:21 -0700 (PDT) Message-ID: <4E6D23BF.8090204@gmail.com> Date: Sun, 11 Sep 2011 23:10:23 +0200 User-Agent: Thunderbird MIME-Version: 1.0 To: flavius@php.net CC: internals@lists.php.net References: <4E6C8CF6.3080509@php.net> In-Reply-To: <4E6C8CF6.3080509@php.net> Content-Type: multipart/alternative; boundary="------------090301020306020404040705" Subject: Re: [PHP-DEV] ZE2 broken by newer gcc From: keisial@gmail.com ("=?ISO-8859-1?Q?=C1ngel_Gonz=E1lez?=") --------------090301020306020404040705 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Flavius Aspra wrote: > Hi > > I think I've found a bug in the engine, and I think it occures only > with the latest gcc ("gcc version 4.6.1 20110819 (prerelease)"), since > it used to work with earlier versions. > > For example line 867 > http://lxr.php.net/opengrok/xref/PHP_5_3/Zend/zend_execute_API.c#867 > should be > > && PZVAL_IS_REF((*fci->params)[i])) { > > that's what has worked for me at least. Otherwise it ends with a > segfault. > > It may also be gcc breaking BC. So I'm not sure whose "fault" it is, > but I think [] takes precedence over * in the C specification. > > Could someone please verify this issue? > > Regards, > Flavius [] does take precedence over * In this case the macro expansion would also be relevant, but it looks like it would end up as a simple zval_isref_p ((*fci->params)[i]); --------------090301020306020404040705--