ID:               40711
 Updated by:       [EMAIL PROTECTED]
 Reported By:      hannes dot magnusson at gmail dot com
-Status:           Open
+Status:           Assigned
 Bug Type:         Reproducible crash
 Operating System: FreeBSD
 PHP Version:      5CVS-2007-03-03 (CVS)
-Assigned To:      
+Assigned To:      helly


Previous Comments:
------------------------------------------------------------------------

[2007-03-03 17:25:55] hannes dot magnusson at gmail dot com

Description:
------------
Run the code below with reasonable low memory_limit on, for 
instance, PHP5.2 source directory.

Reproduce code:
---------------
<?php
class rfi extends RecursiveFilterIterator {
  public function __construct($path) {
    parent::__construct(new RecursiveDirectoryIterator($path));
  }
}
class rii extends RecursiveIteratorIterator {
}

$rii = new rii(new rfi("."));
foreach($rii as $obj) {
}


Actual result:
--------------
#0  0x081d6e23 in spl_RecursiveIteratorIterator_free_storage 
(_object=0x850464c, tsrm_ls=0x84e82b0) 
at /usr/src/php/5.2/ext/spl/spl_iterators.c:719
719                             sub_iter->funcs->dtor(sub_iter 
TSRMLS_CC);
[New LWP 100098]
(gdb) bt
#0  0x081d6e23 in spl_RecursiveIteratorIterator_free_storage 
(_object=0x850464c, tsrm_ls=0x84e82b0) 
at /usr/src/php/5.2/ext/spl/spl_iterators.c:719
#1  0x0836d384 in zend_objects_store_free_object_storage 
(objects=0x84f2618, tsrm_ls=0x84e82b0) 
at /usr/src/php/5.2/Zend/zend_objects_API.c:89
#2  0x0833d2db in shutdown_executor (tsrm_ls=0x84e82b0) 
at /usr/src/php/5.2/Zend/zend_execute_API.c:299
#3  0x0834c77e in zend_deactivate (tsrm_ls=0x84e82b0) 
at /usr/src/php/5.2/Zend/zend.c:860
#4  0x082f5354 in php_request_shutdown (dummy=0x0) 
at /usr/src/php/5.2/main/main.c:1311
#5  0x083bd0d8 in main (argc=2, argv=0xbfbfe960) 
at /usr/src/php/5.2/sapi/cli/php_cli.c:1294



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40711&edit=1

Reply via email to