Bug 204391 - Arrays and Expression View
Summary: Arrays and Expression View
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Debug CLA
QA Contact: Sylvia Tancheva CLA
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2007-09-23 15:42 EDT by zimi CLA
Modified: 2020-05-14 11:24 EDT (History)
5 users (show)

See Also:


Attachments
proposal patch (4.06 KB, patch)
2009-06-19 04:19 EDT, Toshihiro Izumi CLA
jacek.pospychala: iplog+
Details | Diff
patch (4.71 KB, patch)
2010-01-16 04:37 EST, Zhongwei Zhao CLA
no flags Details | Diff
patch (5.39 KB, patch)
2010-01-20 19:10 EST, Zhongwei Zhao CLA
jacek.pospychala: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zimi CLA 2007-09-23 15:42:30 EDT
There is a problem when we click with right button of mouse on some element of array in Variables View and choose an option "Create Watch Expression"
for example if we want to create watch expression $_SERVER['HTTP_REFERER'] we click on the plus near $_SERVER variable and look for key HTTP_REFERER, than click by right button and choose "Create Watch Expression", but the watch expression is only a key of our array, so it looks like HTTP_REFERER instead of $_SERVER['HTTP_REFERER']
Comment 1 Gadi Goldbarg CLA 2008-12-01 12:14:13 EST
Still relevant - changing version to 2.0.0
[Sylvia Tancheva]
Comment 2 Toshihiro Izumi CLA 2009-06-19 04:19:41 EDT
Created attachment 139612 [details]
proposal patch
Comment 3 Roy Ganor CLA 2009-06-21 14:12:14 EDT
fixed in HEAD
Comment 4 Vadim Punski CLA 2009-12-30 09:29:42 EST
Tested on 2.1SR1.
Still reproducible.
Reopening and moving to 2.2.0M1
Comment 5 Zhongwei Zhao CLA 2010-01-16 04:37:07 EST
Created attachment 156309 [details]
patch
Comment 6 Vadim Punski CLA 2010-01-19 06:43:30 EST
Seems like the patch is not complete.
There is a compilation error in WatchExpressionFactoryAdapter:29, method getVariable() is not available.
Comment 7 Zhongwei Zhao CLA 2010-01-20 19:10:58 EST
Created attachment 156748 [details]
patch

i missed something
Comment 8 Roy Ganor CLA 2010-01-24 09:29:23 EST
contributed by Zhao,

Thanks!
Comment 9 Gadi Goldbarg CLA 2010-02-01 10:39:54 EST
Verified - closing.
[Sylvia Tancheva]
Comment 10 Silver Zachara CLA 2010-07-29 08:50:11 EDT
Hi,

I don't know, but still reproducible with PDT 2.2, so I reopen, I add $_SERVER to Expressions view, expand this expression and right click on e.g. HTTP_HOST and select Watch and string HTTP_HOST is added to the expression view and should be added $_SERVER['HTTP_HOST'] instead.
Comment 11 David Kelsey CLA 2010-07-29 08:55:08 EDT
looks like this defect was raised against the zend debugger. Are you using xdebug ?
Comment 12 Silver Zachara CLA 2010-07-29 09:49:41 EDT
i'm using XDebug
Comment 13 David Kelsey CLA 2010-07-29 09:58:52 EDT
This bug entry applies only to the zend debugger and has probably been fixed for the zend debugger.

If you want the same behaviour when using the xdebug debugger then please could you raise an enhancement bugzilla ?

Thanks
Comment 14 Sylvia Tancheva CLA 2010-07-29 10:00:49 EDT
Hi
I also think that this bug was opened for zend debugger initially and I remember that it was me who checked and closed it.