Bug 533659 - improve superglobal highlighting and error handling
Summary: improve superglobal highlighting and error handling
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Thierry BLIND CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-17 06:08 EDT by Thierry BLIND CLA
Modified: 2020-05-14 13:17 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thierry BLIND CLA 2018-04-17 06:08:48 EDT
Hi,
superglobals are only highlighted when accessed as arrays ($_GET['key']), but they should be highlighted in all cases :

    $params = isset($_GET) ? $_GET : array();
    $_GET['key1'] = 'value1';

Also first user comment at http://php.net/manual/en/language.variables.superglobals.php tells that "Since PHP 5.4, you cannot use a superglobal as the parameter to a function. This causes a fatal error", let's implement that ;)

Thierry.
Comment 1 Eclipse Genie CLA 2018-04-17 06:33:49 EDT
New Gerrit change created: https://git.eclipse.org/r/121242
Comment 3 Eclipse Genie CLA 2018-04-19 05:17:29 EDT
New Gerrit change created: https://git.eclipse.org/r/121393