cvs: php4 / reentrancy.c
[email protected] ("Sascha Schumann")
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <cvssas959179288@cvsserver> |
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