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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 10:01:29 2024 UTC