ID: 48365 Updated by: j...@php.net Reported By: peter dot chen at itg dot com -Status: Open +Status: Feedback Bug Type: Filesystem function related Operating System: sparc-sol2.10 PHP Version: 5.2.9 New Comment:
Please try using this snapshot: http://snaps.php.net/php5.3-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Previous Comments: ------------------------------------------------------------------------ [2009-06-10 16:33:50] peter dot chen at itg dot com It returned: /home/apache/htdocs/testkt/authtest/ /home/apache/htdocs/testkt/globtest.php /home/apache/htdocs/testkt/globtest.php.LCK /home/apache/htdocs/testkt/globtest2.php /home/apache/htdocs/testkt/home.php.LCK which is all the contents within testkt/ ------------------------------------------------------------------------ [2009-06-10 13:01:51] j...@php.net And what did the compiled program output? ------------------------------------------------------------------------ [2009-06-04 01:25:14] peter dot chen at itg dot com The .c code worked. gcc version 4.2.4 ------------------------------------------------------------------------ [2009-06-02 08:25:42] j...@php.net Try compile and run this small C program: ------------------------ #include <glob.h> #include <stdio.h> int main() { glob_t globbuf; int i; globbuf.gl_offs = 15; glob("/home/apache/htdocs/testkt/*", GLOB_MARK, NULL, &globbuf); for(i = 0; i < globbuf.gl_pathc; i++) printf("%s\n",globbuf.gl_pathv[i]); globfree(&globbuf); return(0); } ------------------------ See also bug #22641 ------------------------------------------------------------------------ [2009-06-01 22:04:01] peter dot chen at itg dot com Actually, now that you mention it, the path is on an NFS. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/48365 -- Edit this bug report at http://bugs.php.net/?id=48365&edit=1