[xdebug-dev] Bug 0000322: Unable to get value for hash via DBGp .

From: <noreply[@]lists.xdebug.org>
Date: Sat, 27 Oct 2007 19:09:40 +0200

The following bug has been RESOLVED.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000322
======================================================================
Reporter: nix
Handler: derick
======================================================================
Project: Xdebug
Bug ID: 322
Category: Feature/Change request
Reproducibility: always
Severity: major
Priority: normal
Status: resolved
Operating System: Solaris 10
PHP Version: 5.1.4
Xdebug Version: 2.0.0
Resolution: not a bug
======================================================================
Date Submitted: 2007-10-23 16:33 CEST
Last Modified: 2007-10-27 19:09 CEST
======================================================================
Summary: 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[&apos;argv&apos;].
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[&apos;argv&apos;]
$_SERVER['argv']
======================================================================

----------------------------------------------------------------------
 nix - 2007-10-23 16:40 CEST
----------------------------------------------------------------------
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 19:09 CEST
----------------------------------------------------------------------
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.

Bug History
Date Modified Username Field Change
======================================================================
2007-10-23 16:33nix New Bug
2007-10-23 16:33nix Bug Monitored: nix
2007-10-23 16:40nix Bugnote Added: 0000757
2007-10-23 16:41nix Bug End Monitor: nix
2007-10-27 19:09derick Bugnote Added: 0000770
2007-10-27 19:09derick Assigned To => derick
2007-10-27 19:09derick Resolution open => not a bug
2007-10-27 19:09derick Status new => resolved
======================================================================
Received on Sat Oct 27 2007 - 19:09:45 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST