#33592 [Bgs]: Glob + recursion = segmentation fault
| From: | bugz at nagash dot org | Date: | Wed, 06 Jul 2005 20:58:45 +0000 |
| Subject: | #33592 [Bgs]: Glob + recursion = segmentation fault | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-81494@lists.php.net to get a copy of this message | ||
ID: 33592
User updated by: bugz at nagash dot org
Reported By: bugz at nagash dot org
Status: Bogus
Bug Type: Filesystem function related
Operating System: Linux - Gentoo
PHP Version: 5.0.4
New Comment:
but how to name situation when I receive segmentation fault and should
spend time to find where...
in my opinion the best way to help programmers is to write error
description but not to do in the way how it's going on now....
Previous Comments:
------------------------------------------------------------------------
[2005-07-06 22:51:12] derick@php.net
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
.
------------------------------------------------------------------------
[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