php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #81989 Glob() miss a scope limit parameter, to limit the max returned paths
Submitted: 2023-03-23 00:30 UTC Modified: 2024-07-19 22:10 UTC
Votes:6
Avg. Score:2.0 ± 1.0
Reproduced:0 of 1 (0.0%)
From: my25mb at aol dot com Assigned: cmb (profile)
Status: Feedback Package: *Directory/Filesystem functions
PHP Version: 8.0.28 OS: any
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2023-03-23 00:30 UTC] my25mb at aol dot com
Description:
------------
PHP 8.0.28

short description:
Glob() miss a scope limit parameter, to limit the max quantity of returned paths



Test script:
---------------
glob($pattern);

Expected result:
----------------
define(MAX_RETURNED_PATHS, "500");

glob($pattern, MAX_RETURNED_PATHS);

Actual result:
--------------
glob() as no limit in the search.

Take to time consuming and wast of resources operations..

Patches

pHqghUme (last revision 2024-07-19 14:41 UTC by testing at example dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2023-03-23 04:37 UTC] stas@php.net
-Type: Security +Type: Feature/Change Request
 [2024-07-19 22:10 UTC] cmb@php.net
Are you still interested in this feature?
 [2024-07-19 22:10 UTC] cmb@php.net
-Status: Open +Status: Feedback -Assigned To: +Assigned To: cmb
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 26 23:01:30 2024 UTC