Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55362 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 97405 invoked from network); 11 Sep 2011 10:28:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Sep 2011 10:28:08 -0000 Authentication-Results: pb1.pair.com header.from=flavius.as@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=flavius.as@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.42 as permitted sender) X-PHP-List-Original-Sender: flavius.as@gmail.com X-Host-Fingerprint: 209.85.161.42 mail-fx0-f42.google.com Received: from [209.85.161.42] ([209.85.161.42:51081] helo=mail-fx0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3A/A4-45650-63D8C6E4 for ; Sun, 11 Sep 2011 06:28:07 -0400 Received: by fxbb27 with SMTP id b27so611623fxb.29 for ; Sun, 11 Sep 2011 03:28:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; bh=v48xRXX+bReYMUOP+MAU7wgqEn+d9mLy6i3ITXRVm0Y=; b=eLy/hvLwFFK0s9211951PyL95JykVjU0kSI4/yc/PkHwt6j9Ld77L3rfIWNDUZOaLd WhwfpYojr5VVbtQdKI6BJGi7E9YY15fp+PiQLuGQNUGJAfQhl3tCQMTMH0UQL6+i8zL2 0GRBWeH3sC3IaTceOBv8gOLSYIIaBQhnYFHZs= Received: by 10.223.22.150 with SMTP id n22mr1229744fab.110.1315736883454; Sun, 11 Sep 2011 03:28:03 -0700 (PDT) Received: from [192.168.2.3] (chello080109207086.1.graz.surfer.at [80.109.207.86]) by mx.google.com with ESMTPS id n1sm3377285fad.20.2011.09.11.03.28.02 (version=SSLv3 cipher=OTHER); Sun, 11 Sep 2011 03:28:02 -0700 (PDT) Message-ID: <4E6C8CF6.3080509@php.net> Date: Sun, 11 Sep 2011 12:27:02 +0200 Reply-To: flavius@php.net User-Agent: I am harmful. Fear me please :-) Mnenhy/0.7.6.666 MIME-Version: 1.0 To: internals@lists.php.net CC: flavius@php.net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: ZE2 broken by newer gcc From: flavius.as@gmail.com (Flavius Aspra) 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 -- What I cannot create, I do not understand. -- Feynman