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-10-05 09:00 UTC
Votes:6
Avg. Score:2.0 ± 1.0
Reproduced:0 of 1 (0.0%)
From: my25mb at aol dot com Assigned:
Status: Re-Opened Package: *Directory/Filesystem functions
PHP Version: 8.0.28 OS: any
Private report: No CVE-ID: None
 [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)

Pull Requests

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
 [2024-07-28 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 [2024-10-05 03:30 UTC] my25mb at aol dot com
-Status: No Feedback +Status: Closed
 [2024-10-05 03:30 UTC] my25mb at aol dot com
Sure I'm interested, like everyone I mean..

I would thank you for any effort produced to implement it.

Dan
 [2024-10-05 09:00 UTC] cmb@php.net
-Status: Closed +Status: Re-Opened -Assigned To: cmb +Assigned To:
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 14:01:29 2024 UTC