Doc #69701 [NEW]: Example provided for the count function acts on the wrong element

From: Date: Sun, 24 May 2015 21:23:37 +0000
Subject: Doc #69701 [NEW]: Example provided for the count function acts on the wrong element
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-12362@lists.php.net to get a copy of this message
From: malcolm at notyourhomework dot net Operating system: Mac OS X PHP version: Irrelevant Package: SimpleXML related Bug Type: Documentation Problem Bug description:Example provided for the count function acts on the wrong element Description: ------------ --- From manual page: http://www.php.net/simplexmlelement.count --- The count example script operates on the person element, It should be operating on the child element. presently it is $person->count() it should be $person->child->count() -- Edit bug report at https://bugs.php.net/bug.php?id=69701&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69701&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69701&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69701&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69701&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69701&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69701&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69701&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69701&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69701&r=support Expected behavior: https://bugs.php.net/fix.php?id=69701&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69701&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69701&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69701&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69701&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69701&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69701&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69701&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69701&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69701&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69701&r=mysqlcfg

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