Doc #67011 [NEW]: Manual: Comparing generators with Iterator objects: generators cannot be cloned
| From: | william75 at yopmail dot com | Date: | Thu, 03 Apr 2014 17:34:20 +0000 |
| Subject: | Doc #67011 [NEW]: Manual: Comparing generators with Iterator objects: generators cannot be cloned | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-11112@lists.php.net to get a copy of this message | ||
From: william75 at yopmail dot com
Operating system:
PHP version: 5.5.11
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Manual: Comparing generators with Iterator objects: generators cannot be cloned
Description:
------------
---
From manual page: http://www.php.net/language.generators.comparison
---
The page http://php.net/manual/en/language.generators.comparison.php
currently reads:
"This also means that the same generator can't be iterated over multiple
times: the generator will need to either be rebuilt by calling the
generator function again, or cloned via the clone keyword."
The last bit is incorrect: a generator cannot be cloned (Fatal error:
Trying to clone an uncloneable object of class Generator in ...). I
think you need to delete the "or cloned via the clone keyword" part (and
also the "either" before).
The error is also present in translations.
--
Edit bug report at https://bugs.php.net/bug.php?id=67011&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=67011&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=67011&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=67011&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=67011&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=67011&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=67011&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=67011&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=67011&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=67011&r=support
Expected behavior: https://bugs.php.net/fix.php?id=67011&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=67011&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=67011&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=67011&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=67011&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=67011&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=67011&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=67011&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=67011&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=67011&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=67011&r=mysqlcfg