Date: 06/29/99
- Next message: Bug Database: "[PHP-DEV] Bug #1627 Updated: Opendir does not behave the same on Windows platform as on Unix(Linux)"
- Previous message: Manuel Lemos: "Re: [PHP-DEV] Object method as handler functions in PHP4/Zend"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tuesday June 29, 1999 @ 22:44
Author: jim
Update of /repository/php3/win32
In directory php:/tmp/cvs-serv8108/win32
Modified Files:
readdir.c
Log Message:
Always just return NULL when unable to opendir() on Windows. (Bug #1627)
Index: php3/win32/readdir.c
diff -u php3/win32/readdir.c:1.6 php3/win32/readdir.c:1.7
--- php3/win32/readdir.c:1.6 Mon Dec 28 04:44:04 1998
+++ php3/win32/readdir.c Tue Jun 29 22:44:50 1999
@@ -1,4 +1,4 @@
-/* $Id: readdir.c,v 1.6 1998/12/28 09:44:04 sas Exp $ */
+/* $Id: readdir.c,v 1.7 1999/06/30 02:44:50 jim Exp $ */
#include <malloc.h>
#include <string.h>
@@ -40,10 +40,8 @@
dp->dir = strdup(dir);
if ((handle = _findfirst(filespec, &(dp->fileinfo))) < 0) {
- if (errno == ENOENT)
- dp->finished = 1;
- else
- return NULL;
+ free(filespec); free(dp);
+ return NULL;
}
dp->handle = handle;
free(filespec);
-- PHP Development Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Bug Database: "[PHP-DEV] Bug #1627 Updated: Opendir does not behave the same on Windows platform as on Unix(Linux)"
- Previous message: Manuel Lemos: "Re: [PHP-DEV] Object method as handler functions in PHP4/Zend"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

