Re: PHP 4.0 Bug #7681 Updated: Syntax error in list ignored.

From: Date: Tue, 07 Nov 2000 18:09:37 +0000
Subject: Re: PHP 4.0 Bug #7681 Updated: Syntax error in list ignored.
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-37380@lists.php.net to get a copy of this message
On 7 Nov 2000 stas@php.net wrote: > And what's bad it it? It's just a convenience feature, so that you could easily > copy-paste list elements without worrying which one is the last. If you're forced to work with php3 and php4 then its just another trap to step in. I'd realy appreciate something like a strict-mode. > > Previous Comments: > --------------------------------------------------------------------------- > > [2000-11-07 16:32:51] sven@devcon.net > The following piece of code works on php4 if you insert a > blank after the comma followed by a comment or a new line. It's ignored. php3 panics (like > supposed to be). > > $default_document = array ( > 'CATEGORY' => 'l_category', > 'PAGE' => 'l_page', > 'PRODUCT' => 'l_product', > 'CART' => 'l_cart', > 'ORDER' => 'l_order', # This works. > ); > > > --------------------------------------------------------------------------- > > > Full Bug description available at: http://bugs.php.net/?id=7681 > > >

« previous php.dev (#37380) next »