cvs: php4 / reentrancy.c
| From: | Sascha Schumann | Date: | Wed, 24 May 2000 14:41:28 +0000 |
| Subject: | cvs: php4 / reentrancy.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-15674@lists.php.net to get a copy of this message | ||
sas Wed May 24 16:41:28 2000 EDT
Modified files:
/php4 reentrancy.c
Log:
If no further directory exists, php_readdir_r() returns success and sets
*result to NULL.
Index: php4/reentrancy.c
diff -u php4/reentrancy.c:1.18 php4/reentrancy.c:1.19
--- php4/reentrancy.c:1.18 Wed May 24 13:06:57 2000
+++ php4/reentrancy.c Wed May 24 16:41:28 2000
@@ -108,8 +108,10 @@
if (ret == 0)
*result = entry;
- else
+ else if (errno == 0) {
*result = NULL;
+ ret = 0;
+ }
return ret;
#else