Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44722 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 16953 invoked from network); 6 Jul 2009 16:01:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Jul 2009 16:01:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=cschneid@cschneid.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=cschneid@cschneid.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain cschneid.com from 195.226.6.51 cause and error) X-PHP-List-Original-Sender: cschneid@cschneid.com X-Host-Fingerprint: 195.226.6.51 darkcity.gna.ch Linux 2.6 Received: from [195.226.6.51] ([195.226.6.51:49193] helo=mail.gna.ch) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6C/FD-51746-CBF125A4 for ; Mon, 06 Jul 2009 12:01:02 -0400 Received: from localhost (localhost [127.0.0.1]) by darkcity.gna.ch (Postfix) with ESMTP id A0B0A13671D for ; Mon, 6 Jul 2009 18:00:57 +0200 (CEST) X-Virus-Scanned: amavisd-new at gna.ch Received: from mail.gna.ch ([127.0.0.1]) by localhost (gna.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YR4gSz0l3oEl for ; Mon, 6 Jul 2009 18:00:57 +0200 (CEST) Received: from [192.168.1.72] (84-75-131-148.dclient.hispeed.ch [84.75.131.148]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by darkcity.gna.ch (Postfix) with ESMTPSA id 4B7E113666F for ; Mon, 6 Jul 2009 18:00:57 +0200 (CEST) Message-ID: <4A521FB8.8030202@cschneid.com> Date: Mon, 06 Jul 2009 18:00:56 +0200 User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: PHP 5.3: Is the use of {} to access string offsets deprecated? From: cschneid@cschneid.com (Christian Schneider) The migration guide states that "The use of {} to access string offsets is deprecated. Use [] instead." but the code in zend_compile.c is commented out with #ifdef ilia_0. What's the take on this? Will it be deprecated later or should that part be removed from the migration document? Another side-note: The paragraph "The behaviour of functions with by-reference parameters called by value has changed. Where previously the function would accept the by-value argument, a warning is now emitted and all by-ref parameters are set to NULL" was confusing for a couple of people here and to be honest I'm not sure either what it means ;-) Regards, - Chris