|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-04-06 13:33 UTC] bschussek at gmail dot com
-Type: Bug
+Type: Feature/Change Request
[2015-04-06 13:33 UTC] bschussek at gmail dot com
[2019-09-29 12:25 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2019-09-29 12:25 UTC] cmb@php.net
[2019-10-13 04:22 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 04:00:01 2025 UTC |
Description: ------------ I'd love to see a function glob_match() that matches a path against a glob using the same rules used by glob(). This function is needed when a virtual file system (implemented in PHP) should be globbed for files. Signature: glob_match(string $path, string $glob[, int $flags = 0]) $path - a file system path $glob - a glob $flags - the glob() flags Result: true if the path matches, false otherwise Test script: --------------- <?php var_dump(glob_match('css/style.css', '*/*.css')); var_dump(glob_match('js/script.js', '*/*.css')); Expected result: ---------------- true false