Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:35937 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81435 invoked from network); 4 Mar 2008 01:27:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Mar 2008 01:27:33 -0000 Authentication-Results: pb1.pair.com header.from=felipensp@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=felipensp@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.184.225 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: felipensp@gmail.com X-Host-Fingerprint: 64.233.184.225 wr-out-0506.google.com Received: from [64.233.184.225] ([64.233.184.225:20955] helo=wr-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 14/70-29055-485ACC74 for ; Mon, 03 Mar 2008 20:27:32 -0500 Received: by wr-out-0506.google.com with SMTP id c48so178618wra.23 for ; Mon, 03 Mar 2008 17:27:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=P6f7ElmaQayv25AF6SkwtZ6n6d+Iaaq+pjQyhYc1Clg=; b=hp3mj4qazoFiuQzcZ8FKjI/qk/2yQeQQ8bKg2zz5mOEXVcEWJ1oRYww1yMn+eRKOrl/Ahut0j1HmbXjvljQyE5oqEhLsB/PDom1mXJhQVS6b+quD6rQxau7TLJ9YNk1X4nzi3etpam3OUIkQMJubR79QLwCH+sT1cyGW8VUpF1s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=RY7QILXUa7BAzZWF9rmtPA/uxLTEfdM0+6FF+Q1IltII8YHM0L42gYNiq++9uEjxhYCeWFoTX1zSBwymv1mTVywB/H76s9J3ICuGon5kVjNHKh+0EikdLXZw77tCWkslS00rTuozt9ZUiyK8dnfL4wgRSH2LMUd5D1JM7rKKxJU= Received: by 10.100.164.10 with SMTP id m10mr762081ane.48.1204594049298; Mon, 03 Mar 2008 17:27:29 -0800 (PST) Received: from ?192.168.1.2? ( [189.24.126.3]) by mx.google.com with ESMTPS id i27sm1624935elf.14.2008.03.03.17.27.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 03 Mar 2008 17:27:28 -0800 (PST) To: internals@lists.php.net Content-Type: text/plain Date: Mon, 03 Mar 2008 22:26:58 -0300 Message-ID: <1204594018.5832.29.camel@pena> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit Subject: Fix for #39018 (suppressing error messages) From: felipensp@gmail.com (Felipe Pena) Hello developers, I made a patch for the bug#39018: $x = 'test'; @$x[4] == 'a'; (@$x[4]) == 'a'; (@($x[4])) == 'a'; @($x[4]) == 'a'; $foo = 'test'; $x = @$foo[6]; Actually, all cases above shows E_NOTICE. With the patch, E_NOTICE is not showed. Patches: [5.3] http://felipe.ath.cx/diff/bug39018.diff [HEAD] http://felipe.ath.cx/diff/bug39018-HEAD.diff However, this patch breaks one test in Zend/tests/, because of an E_NOTICE: --TEST-- Bug #39304 (Segmentation fault with list unpacking of string offset) --FILE-- --EXPECTF-- Fatal error: Cannot use string offset as an array in %sbug39304.php on line 3 Diff: 001+ Notice: Uninitialized string offset: 0 ... Would be this a problem? Looks right to me... Finally, any objection? Tests for the this fix: - http://felipe.ath.cx/diff/bug39018.phpt - http://felipe.ath.cx/diff/bug39018_2.phpt Thanks. -- Regards, Felipe Pena.