Bug #55701 [NEW]: GlobIterator throws LogicException with message 'The parent constructor was not
| From: | bs@php.net | Date: | Thu, 15 Sep 2011 13:42:30 +0000 |
| Subject: | Bug #55701 [NEW]: GlobIterator throws LogicException with message 'The parent constructor was not | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-163562@lists.php.net to get a copy of this message | ||
From:
Operating system: Linux, OSX
PHP version: 5.3.8
Package: SPL related
Bug Type: Bug
Bug description:GlobIterator throws LogicException with message 'The parent constructor was not
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 bug report at https://bugs.php.net/bug.php?id=55701&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55701&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55701&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55701&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55701&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55701&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55701&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55701&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55701&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55701&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55701&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55701&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55701&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55701&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55701&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55701&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55701&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55701&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55701&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55701&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55701&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55701&r=mysqlcfg