|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33592 Glob + recursion = segmentation fault
Submitted: 2005-07-06 22:42 UTC Modified: 2005-07-06 22:58 UTC
From: bugz at nagash dot org Assigned:
Status: Not a bug Package: Filesystem function related
PHP Version: 5.0.4 OS: Linux - Gentoo
Private report: No CVE-ID: None
 [2005-07-06 22:42 UTC] bugz at nagash dot org
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);

Expected result:
PHP warning \ fatal \ etc.

Actual result:
segmentation fault


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-06 22:51 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

 [2005-07-06 22:58 UTC] bugz at nagash dot org
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....
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Thu Nov 26 13:01:23 2020 UTC