#28477 [NEW]: glob() searches in / for "*"

From: Date: Fri, 21 May 2004 18:13:26 +0000
Subject: #28477 [NEW]: glob() searches in / for "*"
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-59855@lists.php.net to get a copy of this message
From: d at koteroff dot ru Operating system: Windows PHP version: 5CVS-2004-05-21 (dev) PHP Bug Type: Directory function related Bug description: glob() searches in / for "*" Description: ------------ Yesterday's CVS version of glob() has a bug while searching by relative masks. PHP5 RC2 works well. Version php5-win32-200405050630 in CVS works correctly too. getcwd() returns correct directory. Reproduce code: --------------- print_r(glob("*")); Expected result: ---------------- Files in current directory. Actual result: -------------- Files in "/" (root directory). -- Edit bug report at http://bugs.php.net/?id=28477&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28477&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28477&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28477&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28477&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28477&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28477&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28477&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28477&r=support Expected behavior: http://bugs.php.net/fix.php?id=28477&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28477&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28477&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28477&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28477&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28477&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28477&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28477&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28477&r=float

« previous php.bugs (#59855) next »