Doc #78462 [NEW]: Wrong return type for ArrayIterator::unserialize

From: Date: Tue, 27 Aug 2019 11:37:21 +0000
Subject: Doc #78462 [NEW]: Wrong return type for ArrayIterator::unserialize
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-16908@lists.php.net to get a copy of this message
From: fabien dot villepinte at gmail dot com Operating system: PHP version: Irrelevant Package: SPL related Bug Type: Documentation Problem Bug description:Wrong return type for ArrayIterator::unserialize Description: ------------ There is a mistake in the documentation of ArrayIterator::unserialize about the return type. It should be void instead of string. The 'Return Values' should also be updated accordingly. See: https://www.php.net/manual/en/arrayiterator.unserialize.php Test script: --------------- <?php $a = new ArrayIterator(); var_dump($a->unserialize( (new ArrayIterator([1, 2, 3]))->serialize() )); foreach ($a as $e) { var_dump($e); } Expected result: ---------------- NULL int(1) int(2) int(3) -- Edit bug report at https://bugs.php.net/bug.php?id=78462&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78462&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78462&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78462&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78462&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78462&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78462&r=support Expected behavior: https://bugs.php.net/fix.php?id=78462&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78462&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78462&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78462&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78462&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78462&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78462&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78462&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78462&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78462&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78462&r=mysqlcfg

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