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 126301 - PHP editor reports errors on correct PHP code (NewExpression)
Summary: PHP editor reports errors on correct PHP code (NewExpression)
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks: 126072
  Show dependency tree
 
Reported: 2008-01-30 16:31 UTC by Petr Pisl
Modified: 2008-03-27 11:25 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 Petr Pisl 2008-01-30 16:31:57 UTC
The valid PHP code is:

$class = "Block_$type";
$proto = new $class;
Comment 1 Petr Pisl 2008-01-30 16:44:40 UTC
The fix could be in the purePHP5.nbs file:

-NewExpression = "new" <php_identifier> [ Arguments ] ;
+NewExpression = "new" (<php_identifier> | Expression) [ Arguments ] ;
Comment 2 Petr Pisl 2008-03-27 10:54:46 UTC
Fixed in the new editor.