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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 16:01:31 2025 UTC