|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-07-30 12:06 UTC] svn@php.net
[2009-07-30 12:07 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 09:00:02 2025 UTC |
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