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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: my25mb at aol dot com
New email:
PHP Version: OS:

 

 [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: Sat Jul 27 03:01:30 2024 UTC