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 188644 - trying to use function return value in write context not recognized as error in PHP editor
Summary: trying to use function return value in write context not recognized as error ...
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: Macintosh (x86) Mac OS X
: P4 normal (vote)
Assignee: Ondrej Brejla
Depends on:
Reported: 2010-07-13 23:43 UTC by tomjnsn
Modified: 2016-09-22 01:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description tomjnsn 2010-07-13 23:43:14 UTC
Product Version = NetBeans IDE 6.9 (Build 201006101454)
Operating System = Mac OS X version 10.6.4 running on x86_64
Java; VM; Vendor = 1.6.0_20
Runtime = Java HotSpot(TM) 64-Bit Server VM 16.3-b01-279

In the following test.php file the editor does not recognize the line of code as an error:

func() = 'some value';

It shows green for the file.  If I do a php -l test.php on the file (using version 5.3.1)  it reports the following:

Fatal error: Can't use function return value in write context in test.php on line 2
Errors parsing test.php
Comment 1 Filip Zamboj 2010-09-15 12:32:31 UTC
batch reassigning
Comment 2 Ondrej Brejla 2011-10-03 12:18:52 UTC
Reproducible in 7.1.
Comment 3 Ondrej Brejla 2012-02-14 12:50:04 UTC
Parser problem, but it's really border case.
Comment 4 amobilia 2016-09-22 01:54:11 UTC
Reproductible in 8.2rc (201609210002)