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.
Product Version = NetBeans IDE 7.1.1 (Build 201203091344) Operating System = Linux version 3.0.0-17-generic-pae running on i386 Java; VM; Vendor = 1.6.0_23 Runtime = OpenJDK Client VM 20.0-b11 Netbeans considers $argc and $argv as regular PHP variables whereas they are predifined variables (like $_SERVER, etc.). As a result, Netbeans displays a warning icon in IDE informing these variables seems to be uninitialized.
Fixed in web-main: http://hg.netbeans.org/web-main/rev/935ebeb36744
Integrated into 'main-golden', will be available in build *201204030400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/935ebeb36744 User: Ondrej Brejla <obrejla@netbeans.org> Log: #210521 - PHP predefined variables $argc and $argv not well handled
Inspecting changes in php.editor/src/org/netbeans/modules/php/editor/verification/UninitializedVariableHint.java, I noticed some other predefined variables are missing : $php_errormsg — The previous error message $HTTP_RAW_POST_DATA — Raw POST data $http_response_header — HTTP response headers See http://www.php.net/manual/en/reserved.variables.php Same thing for php.editor/test/unit/data/testfiles/verification/testUninitializedVariableHint.php
Marked Resolved incomplete for revision
Fixed in web-main: http://hg.netbeans.org/web-main/rev/5549acf6b0da
Thanks for being so reactive. :)
You are welcome ;)
Integrated into 'main-golden', will be available in build *201204040400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/5549acf6b0da User: Ondrej Brejla <obrejla@netbeans.org> Log: #210521 - PHP predefined variables $argc and $argv not well handled (just another variables)
*** Bug 210696 has been marked as a duplicate of this bug. ***