#49108 [Asn->Csd]: 2nd scan_dir produces seg fault
| From: | felipe@php.net | Date: | Thu, 30 Jul 2009 12:07:01 +0000 |
| Subject: | #49108 [Asn->Csd]: 2nd scan_dir produces seg fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-140481@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: 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] svn@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: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