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
 [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

Pull Requests

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 Dec 21 12:01:31 2024 UTC