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 185122 - list(): Warning when using variables that are actually beeing initialized
Summary: list(): Warning when using variables that are actually beeing initialized
Status: RESOLVED DUPLICATE of bug 170541
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-27 16:35 UTC by coops
Modified: 2010-04-28 07:26 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 coops 2010-04-27 16:35:09 UTC
You currently get warnings for this code in the editor:

list($child_model, $child_column) = $pointer;

$child_model: "Variable might have not been initialized."

The editor incorrectly treats list() as a function and therefore assuming the variables are beeing used when it's infact a language construct that is initializing the variables.
Comment 1 coops 2010-04-27 16:51:49 UTC
Fixed wrong version.
Comment 2 rmatous 2010-04-28 07:26:48 UTC

*** This bug has been marked as a duplicate of bug 170541 ***