| Summary: | PHP Project Outline lists variables under the Constants node | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Sylvia Tancheva <silviya> | ||||||||
| Component: | PDT | Assignee: | PHP UI <php.ui-inbox> | ||||||||
| Status: | CLOSED FIXED | QA Contact: | Ilina Stefanova <ilina.s> | ||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | ||||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
Created attachment 182584 [details]
patch
Hi Silviya Do we need to display the constants defined by "const". sample code: <?php const C = "1"; ?> I think that if they are global they should be displayed (const is available since PHP 5.3: http://www.php.net/manual/en/language.constants.syntax.php) OK, So do you mean that if they are defined under namespace, they should not be displayed?
for example(PHP5.3):
<?php
namesapce ns;
const A = 1; // should not be displayed
define("B", 2); // should not be displayed
?>
<?php
const A = 1; // should be displayed
define("B", 2); // should be displayed
?>
Created attachment 184568 [details]
patch
just display GLOBAL constants.
constants in namespace/class/interface will not be displayed.
applied the patch,thanks! Verified. |
Created attachment 179036 [details] screen-shot 1. Have a PHP project with PHP file with some variables in it 2. Open PHP Project Outline view Notice that the variables are listed under the constants node (screen-shot)