Re: PHP 4.0 Bug #7681 Updated: Syntax error in list ignored.
| From: | Ignacio Vazquez-Abrams | Date: | Tue, 07 Nov 2000 17:01:50 +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-37365@lists.php.net to get a copy of this message | ||
On 7 Nov 2000 stas@php.net wrote:
> ID: 7681
> Updated by: stas
> Reported By: sven@devcon.net
> Status: Closed
> Bug Type: Scripting Engine problem
> Assigned To:
> Comments:
>
> 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.
>
> 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
>
Does this generate an array with five or six elements?
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>