Sec Bug->Req #81989 [Opn]: Glob() miss a scope limit parameter, to limit the max returned paths

From: Date: Thu, 23 Mar 2023 04:37:11 +0000
Subject: Sec Bug->Req #81989 [Opn]: Glob() miss a scope limit parameter, to limit the max returned paths
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-243979@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81989&edit=1 ID: 81989 Updated by: stas@php.net Reported by: my25mb at aol dot com Summary: Glob() miss a scope limit parameter, to limit the max returned paths Status: Open -Type: Security +Type: Feature/Change Request Package: *Directory/Filesystem functions Operating System: any PHP Version: 8.0.28 Block user comment: N Private report: Y Previous Comments: ------------------------------------------------------------------------ [2023-03-23 00:30:49] 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.. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=81989&edit=1

« previous php.bugs (#243979) next »