#35567 [Opn]: DirectoryIterator segfaults after Notice
| From: | judas dot iscariote at gmail dot com | Date: | Tue, 06 Dec 2005 06:49:18 +0000 |
| Subject: | #35567 [Opn]: DirectoryIterator segfaults after Notice | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-89809@lists.php.net to get a copy of this message | ||
ID: 35567
User updated by: judas dot iscariote at gmail dot com
Reported By: judas dot iscariote at gmail dot com
Status: Open
Bug Type: SPL related
Operating System: linux amd64
-PHP Version: 6CVS-2005-12-06 (CVS)
+PHP Version: 5CVS-2005-12-06 (CVS)
New Comment:
php -v
PHP 5.1.2-dev (cgi) (built: Dec 6 2005 03:03:55) (DEBUG)
Previous Comments:
------------------------------------------------------------------------
[2005-12-06 07:45:24] judas dot iscariote at gmail dot com
Description:
------------
DirectoryIterator class is segfaulting after a Notice :
Notice - Object of class DirectoryIterator could not be converted to
int ( registered in apache error_log before segfault)
Reproduce code:
---------------
$dirs = new DirectoryIterator( 'dir' );
foreach( $dirs as $entry ) {
if($dirs->isDir($entry) && !$dirs->isDot($entry)){
$list[] = $entry;
}
}
Expected result:
----------------
code executed correctly.
Actual result:
--------------
notice] child pid 16011 exit signal Segmentation fault (11)
can't get a backtrace :-(
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35567&edit=1