Edit report at http://bugs.php.net/bug.php?id=51585&edit=1
ID: 51585
Updated by: [email protected]
Reported by: himajin100000 at gmail dot com
Summary: wrong description for is_prefix in
SimpleXMLElement::children
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: SimpleXML related
Operating System: Irrelevant
PHP Version: Irrelevant
-Assigned To:
+Assigned To: degeberg
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2010-04-17 23:13:22] [email protected]
Automatic comment from SVN on behalf of degeberg
Revision: http://svn.php.net/viewvc/?view=revision&revision=298133
Log: Fixed PHP bug #51585 (wrong description for is_prefix in
SimpleXMLElement::children)
------------------------------------------------------------------------
[2010-04-17 23:03:29] himajin100000 at gmail dot com
Description:
------------
see
http://jp.php.net/manual/en/simplexmlelement.children.php
Test script:
---------------
<?php
$a = "<a><b:c xmlns:b='http://www.example.com/'>xyz</b:c></a>";
$xml = simplexml_load_string($a);
print_r("1:" . (string)($xml->children("b",false)->c). "\n");
print_r("2:" . (string)($xml->children("b",true)->c) . "\n");
?>
this correctly outputs:
1: 2:xyz
Expected result:
----------------
Description of is_prefix should be as follows:
If is_prefix is TRUE, ns will be regarded as a prefix. If FALSE, ns will
be regarded as a namespace URL.
Actual result:
--------------
Description of is_prefix is as follows:
If is_prefix is TRUE, ns will be regarded as a namespace URL. If FALSE,
ns will be regarded as a prefix.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=51585&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.