CVS update: php3/win32

From: Date: Wed, 30 Jun 1999 02:44:50 +0000
Subject: CVS update: php3/win32
Groups: php.dev 
Request: Send a blank email to php-dev+get-7847@lists.php.net to get a copy of this message
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);

« previous php.dev (#7847) next »