#33592 [Opn->Bgs]: Glob + recursion = segmentation fault
| From: | derick@php.net | Date: | Wed, 06 Jul 2005 20:51:13 +0000 |
| Subject: | #33592 [Opn->Bgs]: Glob + recursion = segmentation fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81493@lists.php.net to get a copy of this message | ||
ID: 33592
Updated by: derick@php.net
Reported By: bugz at nagash dot org
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Linux - Gentoo
PHP Version: 5.0.4
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
.
Previous Comments:
------------------------------------------------------------------------
[2005-07-06 22:42:10] bugz at nagash dot org
Description:
------------
When I try to use glob for the same dir using recursion function - I
receive segmentation fault
Reproduce code:
---------------
function func($v) {
foreach (glob($v, GLOB_ONLYDIR) AS $v) func($v);
}
func('./');
Expected result:
----------------
PHP warning \ fatal \ etc.
Actual result:
--------------
segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=33592&edit=1