Bug #55701 [Opn->Asn]: GlobIterator throws LogicException with message 'The parent constructor was not
| From: | felipe@php.net | Date: | Fri, 16 Sep 2011 00:21:51 +0000 |
| Subject: | Bug #55701 [Opn->Asn]: GlobIterator throws LogicException with message 'The parent constructor was not | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-163581@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55701&edit=1
ID: 55701
Updated by: felipe@php.net
Reported by: bs@php.net
Summary: GlobIterator throws LogicException with message 'The
parent constructor was not
-Status: Open
+Status: Assigned
Type: Bug
Package: SPL related
Operating System: Linux, OSX
PHP Version: 5.3.8
-Assigned To:
+Assigned To: cataphract
Block user comment: N
Private report: N
Previous Comments:
------------------------------------------------------------------------
[2011-09-15 13:42:30] bs@php.net
Description:
------------
Basic functionality doesn't work because it seems as the GlobIterator might needs
some changes to work with this commit:
http://marc.info/?l=php-cvs&m=130188548616717
Test script:
---------------
<?php
$g = new \GlobIterator(__DIR__ . '/*');
do {
$g->next();
} while($g->valid());
Expected result:
----------------
Empty output
Actual result:
--------------
PHP Fatal error: Uncaught exception 'LogicException' with message 'The parent
constructor
was not called: the object is in an invalid state ' in /private/tmp/x.php:6
Stack trace:
#0 /private/tmp/x.php(6): SplFileInfo->_bad_state_ex()
#1 {main}
thrown in /private/tmp/x.php on line 6
Fatal error: Uncaught exception 'LogicException' with message 'The parent
constructor was not
called: the object is in an invalid state ' in /private/tmp/x.php:6
Stack trace:
#0 /private/tmp/x.php(6): SplFileInfo->_bad_state_ex()
#1 {main}
thrown in /private/tmp/x.php on line 6
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55701&edit=1