Doc #51814 [NEW]: ArrayIterator::append arguments are listed incorrectly

From: Date: Thu, 13 May 2010 20:08:32 +0000
Subject: Doc #51814 [NEW]: ArrayIterator::append arguments are listed incorrectly
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4367@lists.php.net to get a copy of this message
From: Operating system: N/A PHP version: 5.3.2 Package: Documentation problem Bug Type: Documentation Problem Bug description:ArrayIterator::append arguments are listed incorrectly Description: ------------ The sole argument for the ArrayIterator::append method is listed as a string; however, I have successfully used this method to add arbitrary objects to an ArrayIterator. Test script: --------------- <?php $ai=new ArrayIterator(); $obj=new stdClass; $obj->a=1; $ai->append($obj); echo 'count() == '. $ai->count() .'<br />'; while($ai->valid()) { echo 'Object '.$ai->key() .'->a == '. $ai->current()->a.'<br />'; $ai->next(); } ?> Expected result: ---------------- count() == 1 Object 0->a == 1 -- Edit bug report at http://bugs.php.net/bug.php?id=51814&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51814&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51814&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51814&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51814&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51814&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51814&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51814&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51814&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51814&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51814&r=support Expected behavior: http://bugs.php.net/fix.php?id=51814&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51814&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51814&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51814&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51814&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51814&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51814&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51814&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51814&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51814&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51814&r=mysqlcfg

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