php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #51585 wrong description for is_prefix in SimpleXMLElement::children
Submitted: 2010-04-17 23:03 UTC Modified: 2010-04-17 23:13 UTC
From: himajin100000 at gmail dot com Assigned: degeberg (profile)
Status: Closed Package: SimpleXML related
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: himajin100000 at gmail dot com
New email:
PHP Version: OS:

 

 [2010-04-17 23:03 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-04-17 23:13 UTC] degeberg@php.net
Automatic comment from SVN on behalf of degeberg
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=298133
Log: Fixed PHP bug #51585 (wrong description for is_prefix in SimpleXMLElement::children)
 [2010-04-17 23:13 UTC] degeberg@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: degeberg
 [2010-04-17 23:13 UTC] degeberg@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 22 09:01:28 2024 UTC