Date: 10/20/00
- Next message: Andi Gutmans: "Re: [PHP-DEV] A proposal regarding function naming, aliasesand such"
- Previous message: Hartmut Holzgraefe: "Re: [PHP-DEV] A proposal regarding function naming, aliasesand such"
- Maybe in reply to: jalal <email protected>: "[PHP-DEV] PHP 4.0 Bug #7344: opendir always returns a resource even on non-existen directories"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Here's a patch to make opendir function the same on Windows as on
Linux. Could someone insert it please?
(I assume it should function the same under Windows? It make se
to
me...)
-------------------------------------------8X---------------------------
-----
--- php4/win32/readdir.c Fri Oct 20 12:17:10 2000
+++ php4/win32/readdir.bak Fri Oct 20 12:17:34 2000
@@ -38,10 +38,7 @@
dp->dir = strdup(dir);
if ((handle = _findfirst(filespec, &(dp->fileinfo))) < 0) {
- if (errno == ENOENT)
- dp->finished = 1;
- else
- return NULL;
+ return NULL;
}
dp->handle = handle;
free(filespec);
-------------------------------------------8X---------------------------
-----
--jalal --
-- 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: Andi Gutmans: "Re: [PHP-DEV] A proposal regarding function naming, aliasesand such"
- Previous message: Hartmut Holzgraefe: "Re: [PHP-DEV] A proposal regarding function naming, aliasesand such"
- Maybe in reply to: jalal <email protected>: "[PHP-DEV] PHP 4.0 Bug #7344: opendir always returns a resource even on non-existen directories"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

