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 248237 - Accidental assignment in a condition
Summary: Accidental assignment in a condition
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-29 08:58 UTC by acidjames
Modified: 2014-10-29 09:10 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
netbeans ide (19.25 KB, image/png)
2014-10-29 08:58 UTC, acidjames
Details

Note You need to log in before you can comment on or make changes to this bug.
Description acidjames 2014-10-29 08:58:15 UTC
Created attachment 150147 [details]
netbeans ide

Hi,

first of all, this was fixed in Netbeans6 : https://netbeans.org/bugzilla/show_bug.cgi?id=138815


In Netbeans 8, 

this triggers a notice : if ($file = $this->getAbsolutePath()) {


As shown here : https://www.dropbox.com/s/m4u0ue7n75t5uf0/Capture%20d%27%C3%A9cran%202014-10-29%2009.34.30.png?dl=0


This is correct in PHP, shouldn't trigger a notice.

Regards,
James
Comment 1 Tomas Mysik 2014-10-29 09:10:59 UTC
Reassigning to editor. Thanks.