Bug 533276 - const vs define and tooltips
Summary: const vs define and tooltips
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-05 16:17 EDT by Michele Locati CLA
Modified: 2020-05-14 13:16 EDT (History)
1 user (show)

See Also:


Attachments
const-vs-define tooltip (8.46 KB, image/png)
2018-04-05 16:17 EDT, Michele Locati CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michele Locati CLA 2018-04-05 16:17:27 EDT
Created attachment 273464 [details]
const-vs-define tooltip

Since PHP 5.3 we can use const instead of define() to declare a constant.
So, the code
const FOO = 'bar';
should behave like the code
define('BAZ', 'QUX');

BTW, if I hover "FOO" in "echo FOO;", PDT doesn't show an info tooltip, whereas this happens if I hover "BAZ" in "echo BAZ;" (see attachment).
Comment 1 Eclipse Genie CLA 2018-05-15 06:12:01 EDT
New Gerrit change created: https://git.eclipse.org/r/122655
Comment 3 Thierry BLIND CLA 2018-05-16 09:29:28 EDT
Fixed.