php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58060 Unhelpful or no errors with Xpath and Lists
Submitted: 2008-02-25 05:37 UTC Modified: 2017-01-10 08:10 UTC
From: cem@php.net Assigned:
Status: Suspended Package: SCA_SDO (PECL)
PHP Version: 5.2.1 OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cem@php.net
New email:
PHP Version: OS:

 

 [2008-02-25 05:37 UTC] cem@php.net
Description:
------------
See this thread: http://groups.google.co.uk/group/phpsoa/t/ef945b62fa82da9

Two problems: 
a) Try to access a list element using an xpath. For example
   $do = $record->logicalPort['portId=24'];
results in
   PHP Fatal error:  main(): internal error (747) - invalid dimension type 6 in <source> on line <nn>

In other words, you are using a String (type==6) as an index into a list, but only Integers are valid.  This message is not  intelligible to users.

b) Try to unset a list element using an xpath from the container. For example

  unset($record["logicalPort[portId=24]"]) 

There's no error message. But nothing happens. This expression cannot work, because you cannot use an xpath as a list index, so there should be an error message.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-01-10 08:10 UTC] kalle@php.net
-Status: Open +Status: Suspended
 [2017-01-10 08:10 UTC] kalle@php.net
Suspending this report as the extension have not had a release for almost 9 years.  Please revive this if the extension once again shows life
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Wed Nov 25 07:01:23 2020 UTC