ID: 49108 Updated by: fel...@php.net Reported By: michael202 at gmx dot de -Status: Assigned +Status: Closed Bug Type: Reproducible crash Operating System: Suse Linux PHP Version: 5.3.0 Assigned To: felipe New Comment:
Fixed in 5.3+ Previous Comments: ------------------------------------------------------------------------ [2009-07-30 12:06:41] s...@php.net Automatic comment from SVN on behalf of felipe Revision: http://svn.php.net/viewvc/?view=revision&revision=286555 Log: - Fixed bug #49108 (2nd scan_dir produces seg fault) ------------------------------------------------------------------------ [2009-07-30 10:59:24] michael202 at gmx dot de Description: ------------ the second call to scandir() crashes the script with a "Segmentation fault". Reproduce code: --------------- <?php $dir1 = 'ftp://anonymous:anonym...@mirrors.kernel.org/suse/'; $f = scandir($dir1 . 'i386/'); echo count($f) . "\n"; $f = scandir($dir1 . 'noarch/'); echo count($f) . "\n"; Expected result: ---------------- # php php_scandir_segfault.php 5 1 Actual result: -------------- # php php_scandir_segfault.php 5 Segmentation fault ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=49108&edit=1