#49108 [Opn->Asn]: 2nd scan_dir produces seg fault

From: Date: Thu, 30 Jul 2009 11:46:43 +0000
Subject: #49108 [Opn->Asn]: 2nd scan_dir produces seg fault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-140480@lists.php.net to get a copy of this message
ID: 49108 Updated by: felipe@php.net Reported By: michael202 at gmx dot de -Status: Open +Status: Assigned Bug Type: Reproducible crash Operating System: Suse Linux PHP Version: 5.3.0 -Assigned To: +Assigned To: felipe Previous Comments: ------------------------------------------------------------------------ [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:anonymous@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

« previous php.bugs (#140480) next »