Bug 230944

Summary: KDevelop doesn't recognize superglobals in PHP when assigning to their elements
Product: [Applications] kdevelop Reporter: Alexander <ashaduri>
Component: Language Support: PHPAssignee: kdevelop-bugs-null
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alexander 2010-03-16 10:38:23 UTC
Version:           SVN (using KDE 4.4.1)
OS:                Linux
Installed from:    openSUSE RPMs

I'm using KDevelop/kdevplatform/plugins SVN (2010-03-16).

Consider the following example:
------------------------------------------------------------
$_GET["hello"] = "";
$a = $_GET["hello"];
------------------------------------------------------------

The second $_GET is properly highlighted and shows a documentation tooltip. The first $_GET, however, doesn't get recognized (it's shown in different color), doesn't show a tooltip, and doesn't get highlighted when I hover any of them.

Same thing happens with $GLOBALS, etc...
The user-level variables (say, $ar["abc"] = "") are properly recognized, and therefore, unaffected.
Comment 1 Andrew Crouthamel 2018-11-02 23:02:49 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 Andrew Crouthamel 2018-11-16 05:27:30 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version?

Thank you for helping us make KDE software even better for everyone!
Comment 3 Alexander 2018-11-16 20:08:54 UTC
Sorry, I don't use KDevelop anymore, can't test.
Comment 4 Justin Zobel 2022-12-13 02:53:36 UTC
Thank you for reporting this issue in KDE software. As it was reported on an older version, can we please ask you to see if you cazn reproduce the issue with a more recent software version?  
  
If you can confirm this issue still exists in a recent version, please change the version field and the status to "REPORTED" when replying. Thank you!
Comment 5 Alexander 2022-12-13 07:30:35 UTC
KDevelop 4 is unmaintained. If anyone has this problem with the latest version, they should file a new bug.