View Issue Details

IDProjectCategoryView StatusLast Update
0000322XdebugStep Debuggingpublic2020-03-12 17:19
Reporternix Assigned Toderick  
PrioritynormalSeverityfeatureReproducibilityalways
Status resolvedResolutionno change required 
Summary0000322: Unable to get value for hash via DBGp .
Description

property_get command cannot retrieve value for associative
array.
F.e. superglobal variables have $_SERVER associative array.
This array has "argv" key.
This property is returned by context_get command in the form:
$_SERVER['argv'].
But when I try to get property via "property_get" command I
get error ( please see below in additional info ).

I tried to use as property fullname argument following cases
without success:
$_SERVER["argv"]
$_SERVER['argv']
$_SERVER['argv']

Additional Information

command is :
property_get -i 8 -n $_SERVER["argv"]

response is :
<?xml version="1.0" encoding="iso-8859-1"?>
<response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="property_get" transacti
on_id="8" status="break" reason="ok"><error code="300"><message><![CDATA[can not get property]]></message></error></resp
onse>

TagsNo tags attached.
Operating SystemSolaris 10
PHP Version5.1.4

Activities

nix

2007-10-23 15:40

reporter   ~0000757

I'm sorry.
Please close this CR as invalid.
One need to add context argument in described case.
Command should be
property_get -i 8 -n $_SERVER['argv'] -c 1

Appeared error is consequence of context 0 that is used in property_get
command by default. But $_SERVER is context 1 property.

derick

2007-10-27 18:09

administrator   ~0000770

Marking as invalid as requested. However, if $_SERVER has been used in a function, then it would also work without the -c 1 (as the name was introduced into the local scope, which is context 0.

Issue History

Date Modified Username Field Change
2007-10-23 15:33 nix New Issue
2007-10-23 15:40 nix Note Added: 0000757
2007-10-27 18:09 derick Status new => resolved
2007-10-27 18:09 derick Resolution open => no change required
2007-10-27 18:09 derick Assigned To => derick
2007-10-27 18:09 derick Note Added: 0000770
2020-03-12 16:55 derick Severity major => feature
2020-03-12 17:19 derick Category Feature/Change request => Step Debugging