Re: ZE2 broken by newer gcc
| From: | Ángel González | Date: | Sun, 11 Sep 2011 21:10:23 +0000 |
| Subject: | Re: ZE2 broken by newer gcc | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-55369@lists.php.net to get a copy of this message | ||
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 <http://lxr.php.net/opengrok/s?refs=zval_isref_p&project=PHP_5_3>((*fci->params)[i]);