Req #69382 [NEW]: Support "/**/" in glob()

From: Date: Mon, 06 Apr 2015 13:23:39 +0000
Subject: Req #69382 [NEW]: Support "/**/" in glob()
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-191846@lists.php.net to get a copy of this message
From: bschussek at gmail dot com Operating system: Ubuntu 14.04 LTS PHP version: 5.6.8RC1 Package: Filesystem function related Bug Type: Feature/Change Request Bug description:Support "/**/" in glob() Description: ------------ I would love to see support for "/**/" in glob(). That pattern would match zero or more directories in the path, like in Ant. Test script: --------------- <?php touch('style.css'); touch('script.js'); mkdir('dir'); touch('dir/reset.css'); foreach (glob('**/*.css') as $path) { echo $path."\n"; } Expected result: ---------------- style.css dir/reset.css Actual result: -------------- dir/reset.css -- Edit bug report at https://bugs.php.net/bug.php?id=69382&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69382&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69382&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69382&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69382&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69382&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69382&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69382&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69382&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69382&r=support Expected behavior: https://bugs.php.net/fix.php?id=69382&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69382&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69382&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69382&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69382&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69382&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69382&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69382&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69382&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69382&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69382&r=mysqlcfg

« previous php.bugs (#191846) next »