Edit report at https://bugs.php.net/bug.php?id=55701&edit=1

 ID:                 55701
 Updated by:         [email protected]
 Reported by:        [email protected]
 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] [email protected]

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

Reply via email to