php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7681 Syntax error in list ignored.
Submitted: 2000-11-07 16:32 UTC Modified: 2000-11-07 17:42 UTC
From: sven at devcon dot net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.3pl1 OS: freebsd
Private report: No CVE-ID: None
 [2000-11-07 16:32 UTC] sven at devcon dot 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.
  );

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-07 17:42 UTC] stas@php.net
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.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 01:00:02 2026 UTC