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.
The valid PHP code is: $class = "Block_$type"; $proto = new $class;
The fix could be in the purePHP5.nbs file: -NewExpression = "new" <php_identifier> [ Arguments ] ; +NewExpression = "new" (<php_identifier> | Expression) [ Arguments ] ;
Fixed in the new editor.