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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
39 - 16 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 00:01:27 2024 UTC