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 126139 - PHP editor reports an error on valid PHP source
Summary: PHP editor reports an error on valid PHP source
Status: VERIFIED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Denis Anisimov
URL:
Keywords:
Depends on:
Blocks: 126072
  Show dependency tree
 
Reported: 2008-01-28 18:57 UTC by Jan Chalupa
Modified: 2008-01-31 12:32 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 Jan Chalupa 2008-01-28 18:57:07 UTC
[NB 6.1 build #20080125; JDK 6u3]

I have a project with WordPress 2.3.2 sources. The editor reports errors in wp-app.php file. Here's the offending code
fragment (trimmed):

		$this->selectors = array(
			'@/service$@' =>
				array('GET' => 'get_service'),
			'@/attachment/file/(\d+)$@' =>
				array('GET' => 'get_file',
						'PUT' => 'put_file',
						'DELETE' => 'delete_file'),
			'@/attachment/(\d+)$@' =>
				array('GET' => 'get_attachment',
						'PUT' => 'put_attachment',
						'DELETE' => 'delete_attachment'),
		);


Apparently, the parser doesn't like the comma ',' before the last closing parenthesis. Removing the comma fixes the issue.
Comment 1 Alexei Mokeev 2008-01-29 07:00:55 UTC
Reproduced on 6.1 M1 200801280931
Comment 2 Denis Anisimov 2008-01-30 13:23:18 UTC
Such issue was already discovered previously and it was fixed.
Possibly this is some regression.
Need to investigate.
Comment 3 Jan Chalupa 2008-01-30 16:45:36 UTC
I'm not able to reproduce the bug with a clean userdir in build #20080129. It really seems to be fixed. Thanks.
Comment 4 Mikhail Matveev 2008-01-31 12:32:37 UTC
Verified