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.

Bug 151147 - Enhance CC for Array parameters
Summary: Enhance CC for Array parameters
Status: RESOLVED WONTFIX
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-23 14:20 UTC by compucoder
Modified: 2012-12-19 15:21 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description compucoder 2008-10-23 14:20:33 UTC
I see some areas that could use some improvement in regards to CC completions when using string parameters:

1) The super globals like $_ENV could benefit from a CC list showing which constants apply to it. I do see you have
$_SERVER doing this so just need to extend it to $_ENV and anything else you can think should do this. It would be great
if it could even do SESSION CC lists - some how keep track of what you add to your SESSION and then offer a CC list
showing the values you have been saving into it. 

I also think the product could really benefit from CC suggestions for ini_set and similar functions. The parameters used
with the ini_ functions are fairly well defined and could probably work in a CC list.

And while I am suggesting stuff... It would be fantastic to have a nice way to adjust the settings of your PHP ini file
from within NB. You already have a spot to add the path to the PHP cgi and if you also did the .ini file path, not only
could you execute the debugger and run with the path to this file (which would be much safer) you could then open the
door to adding a php.ini configuration tool for NB.
Comment 1 Tomasz Slota 2008-10-23 14:42:58 UTC
I reported missing code completion as issue 151151 and UI for editing php.ini as issue 151150, so this issue only covers CC for predefined array indices.

See also issue 138397
Comment 2 Tomasz Slota 2010-02-10 08:45:07 UTC
reassigning to default owner
Comment 3 Filip Zamboj 2010-09-15 12:27:06 UTC
batch reassigning
Comment 4 marcusson 2011-04-02 03:19:29 UTC
I would suggest to close the bug as "will not fix". Because: suggest for super global $_ENV can't be integrated as such list does not exist.

See the PHP manual on $_ENV:

--- snip ---
These variables are imported into PHP's global namespace from the environment under which the PHP parser is running. Many are provided by the shell under which PHP is running and different systems are likely running different kinds of shells,   A_DEFINITIVE_LIST_IS_IMPOSSIBLE  . Please see your shell's documentation for a list of defined environment variables. 
--- snap ---

Agreed?
Comment 5 Ondrej Brejla 2012-12-19 15:21:08 UTC
For me it's won't fix as well.