This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 122565 - array() reported as syntax error
Summary: array() reported as syntax error
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-22 01:41 UTC by _ alexlamsl
Modified: 2008-01-30 14:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ alexlamsl 2007-11-22 01:41:57 UTC
The follow is a valid PHP statement, but will report as a syntax error:

$a = array();

This is most likely a regression in recent builds.


Product Version: NetBeans IDE Dev (Build 200711191200)
Java: 1.6.0_10-ea; Java HotSpot(TM) Client VM 1.6.0_10-ea-b07
System: Windows Vista version 6.0 running on x86; Cp1252; en_GB (nb)
Comment 1 Denis Anisimov 2007-11-22 07:39:34 UTC
This is consequence of changing "array" grammar.
Comment 2 Denis Anisimov 2007-11-22 07:49:12 UTC
    Checking in php/srcmodel/test/unit/src/org/netbeans/modules/php/model/ArrayTest.java;
    /cvs/scripting/php/srcmodel/test/unit/src/org/netbeans/modules/php/model/ArrayTest.java,v  <--  ArrayTest.java
    new revision: 1.2; previous revision: 1.1
    done
    Checking in php/editing/src/org/netbeans/modules/languages/php/resources/purePHP5.nbs;
    /cvs/scripting/php/editing/src/org/netbeans/modules/languages/php/resources/purePHP5.nbs,v  <--  purePHP5.nbs
    new revision: 1.60; previous revision: 1.59
    done
    Checking in php/srcmodel/test/unit/src/org/netbeans/modules/php/model/resources/array.php;
    /cvs/scripting/php/srcmodel/test/unit/src/org/netbeans/modules/php/model/resources/array.php,v  <--  array.php
    new revision: 1.2; previous revision: 1.1
    done
Comment 3 Mikhail Matveev 2008-01-30 14:33:13 UTC
Verified