ID: 28289 Comment by: fvignals at ibsmedia dot com Reported By: xuefer at 21cn dot com Status: Open Bug Type: Filesystem function related Operating System: winxp PHP Version: 4.3.6 New Comment:
-- test 1 -- <?php $path = getcwd(); $driver = $path[0]; // return "c" print_r( glob( $driver.":\*" ) ); ?> -- test 2 -- <?php print_r( glob( getcwd()."\*" ) ); ?> -- test 3 -- <?php print_r( glob( "abc/*" ) ); ?> -- test 4 -- <?php print_r( glob( "/abc/*" ) ); ?> work under win xp pro and personal, win server 2003 (Note : Apache standalone and IIS services. ) Previous Comments: ------------------------------------------------------------------------ [2004-05-05 19:40:02] xuefer at 21cn dot com Description: ------------ path without driver letter(c: d:) failed to work while other filesystem functions(file_get_contents/fopen) works under *windows* Reproduce code: --------------- <?php var_dump(glob("/abc/*")); ?> Expected result: ---------------- array with files in $cur_driver:/abc/ ($cur_driver = driver letter of getcwd()) Actual result: -------------- empty array ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=28289&edit=1