#46053 [Opn->Csd]: SplFileObject::seek - Endless loop
| From: | lbarnaud@php.net | Date: | Thu, 11 Sep 2008 15:32:35 +0000 |
| Subject: | #46053 [Opn->Csd]: SplFileObject::seek - Endless loop | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-128886@lists.php.net to get a copy of this message | ||
ID: 46053
Updated by: lbarnaud@php.net
Reported By: felipe@php.net
-Status: Open
+Status: Closed
Bug Type: SPL related
PHP Version: 5.3CVS-2008-09-11 (CVS)
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-09-11 14:11:38] felipe@php.net
Description:
------------
The endless loop occurs when passing a number greater than the number
of line in file.
Reproduce code:
---------------
<?php
$x = new splfileobject(__FILE__);
$x->getPathName();
$x->seek(10);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46053&edit=1