Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9720 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27109 invoked by uid 1010); 8 May 2004 01:25:04 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 27040 invoked from network); 8 May 2004 01:25:03 -0000 Received: from unknown (HELO avmta4-rme.xtra.co.nz) (210.86.15.159) by pb1.pair.com with SMTP; 8 May 2004 01:25:03 -0000 Received: from mta3-rme.xtra.co.nz ([210.86.15.142]) by avmta4-rme.xtra.co.nz with ESMTP id <20040508012502.NQEJ7544.avmta4-rme.xtra.co.nz@mta3-rme.xtra.co.nz>; Sat, 8 May 2004 13:25:02 +1200 Received: from galaxy ([219.89.128.128]) by mta3-rme.xtra.co.nz with ESMTP id <20040508012500.VBYZ11405.mta3-rme.xtra.co.nz@galaxy>; Sat, 8 May 2004 13:25:00 +1200 Message-ID: <003501c4349b$65c7baa0$0a00a8c0@home.jevon.org> To: "Jason Garber" , References: <20040507210516.92262.qmail@pb1.pair.com> <20040507210516.92262.qmail@pb1.pair.com> <5.1.0.14.0.20040507202204.028a1120@mail.ionzoft.com> Date: Sat, 8 May 2004 13:25:48 +1200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Subject: Re: [PHP-DEV] Implicit Arrays and E_STRICT From: jevon@jevon.org ("Jevon Wright") Won't you then have to recursively initialise multiple dimension arrays? $a = array(); $a[0] = array(); Otherwise, isn't this implicitly creating arrays? (I didn't quite understand the last time) Jevon ----- Original Message ----- From: "Jason Garber" To: Sent: Saturday, May 08, 2004 12:25 PM Subject: Re: [PHP-DEV] Implicit Arrays and E_STRICT > I would view implicit array creation as a slightly negative thing, similar > to accessing the value of a variable that does not exist. > > We run in E_ALL mode and write our code to avoid all E_NOTICEs. For > instance, before using an array, I always initialize it using $aItems = > array(); > > I'm in favor of issuing an E_NOTICE in response to this. > > ~Jason > > At 5/8/2004 12:43 AM +0200, Marcus Boerger wrote: > >Hello Sara, > > > >i like to see one of those too and i have no preference for one of them. > > > >marcus > > > >Friday, May 7, 2004, 11:05:15 PM, you wrote: > > > > > This topic got quietly dropped last week, but I'd like to make one last > > > plea. I'd like to see Zend throw an E_STRICT when arrays are implicitly > > > created. I know there were objections to E_NOTICE, but did anyone have > > > violent objections to E_STRICT? > > > > > -Sara > > > > > > > > > >-- > >Best regards, > > Marcus mailto:helly@php.net > > > >-- > >PHP Internals - PHP Runtime Development Mailing List > >To unsubscribe, visit: http://www.php.net/unsub.php > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >