#50864 [Csd->Opn]: SimpleXMLElement::count does not exist

From: Date: Wed, 24 Feb 2010 14:10:16 +0000
Subject: #50864 [Csd->Opn]: SimpleXMLElement::count does not exist
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3969@lists.php.net to get a copy of this message
ID: 50864 Updated by: degeberg@php.net Reported By: lyle at ubercart dot org -Status: Closed +Status: Open Bug Type: Documentation problem Operating System: Windows Vista PHP Version: 5.2.12 New Comment: Reopening. Apparently SimpleXMLElement::count() was added in PHP 5.3. Previous Comments: ------------------------------------------------------------------------ [2010-02-24 11:23:52] 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 11:23:37] 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-01-27 19:47:16] 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 --- ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50864&edit=1

« previous php.doc.bugs (#3969) next »