ID: 49108
Updated by: [email protected]
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:[email protected]/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