php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #50864 SimpleXMLElement::count does not exist
Submitted: 2010-01-27 19:47 UTC Modified: 2010-03-03 15:14 UTC
Votes:3
Avg. Score:4.3 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: lyle at ubercart dot org Assigned: degeberg (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.2.12 OS: Windows Vista
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: lyle at ubercart dot org
New email:
PHP Version: OS:

 

 [2010-01-27 19:47 UTC] lyle at ubercart dot org
Description:
------------
The page for SimpleXMLElement::children refers to 
SimpleXMLElement::count to check that a node has children. However, 
there is no documentation page for this method, nor does it exist in my 
installation of PHP anyway.

...And I just realized that I'm expected to use the main count() 
function. In that case, there should be a note in the documentation 
about that.

Reproduce code:
---------------
---
From manual pages: simplexmlelement.children#Notes
and                simplexmlelement.children#See Also
---



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-02-24 11:23 UTC] svn@php.net
Automatic comment from SVN on behalf of degeberg
Revision: http://svn.php.net/viewvc/?view=revision&revision=295461
Log: Fixed PHP bug #50864 (SimpleXMLElement::count does not exist)
 [2010-02-24 11:23 UTC] degeberg@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2010-02-24 14:10 UTC] degeberg@php.net
Reopening. Apparently SimpleXMLElement::count() was added in PHP 5.3.
 [2010-03-03 15:13 UTC] degeberg@php.net
Automatic comment from SVN on behalf of degeberg
Revision: http://svn.php.net/viewvc/?view=revision&revision=295784
Log: Fixed #50864 (SimpleXMLElement::count does not exist)
 [2010-03-03 15:14 UTC] degeberg@php.net
-Status: Open +Status: Closed
 [2010-03-03 15:14 UTC] degeberg@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:09 UTC] phpdocbot@php.net
Automatic comment on behalf of degeberg
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=78071bae5a40ac4c66d053b8be1bd9f5f501378f
Log: Fixed #50864 (SimpleXMLElement::count does not exist)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 01:00:01 2026 UTC