php.net |  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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bugz at nagash dot org
New email:
PHP Version: OS:

 

 [2005-07-06 22:42 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-07-06 22:51 UTC] 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: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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 01 00:01:36 2025 UTC