Doc #51585 [Opn->Csd]: wrong description for is_prefix in SimpleXMLElement::children
| From: | degeberg@php.net | Date: | Sat, 17 Apr 2010 21:13:30 +0000 |
| Subject: | Doc #51585 [Opn->Csd]: wrong description for is_prefix in SimpleXMLElement::children | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-149644@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=51585&edit=1
ID: 51585
Updated by: degeberg@php.net
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] degeberg@php.net
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