|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-06-24 17:31 UTC] requinix@php.net
-Status: Open
+Status: Wont fix
[2014-06-24 17:31 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Mon Jan 05 01:00:01 2026 UTC |
Description: ------------ Why? There is literally no reason for the case highlighted in the test script to not produce the expected output. This is supposed to be simple xml, not overly complicated and utterly useless for even parsing (not to mention creating) xml structures. Test script: --------------- $object = simplexml_load_string('<root><base xml:lang="en" /></root>'); print('U' . $object->base->attributes('http://www.w3.org/XML/1998/namespace')->lang); print('X' . $object->base->attributes('xml')->lang); Expected result: ---------------- Prints "UenXen" (both methods work for retrieving the attribute). Actual result: -------------- Prints "UenX" (simply making the referenced namespace 'xml' does not work, instead I have to add that goddamn bloated URL).