1
0
mirror of https://github.com/php/php-src.git synced 2026-04-08 08:33:06 +02:00

If no further directory exists, php_readdir_r() returns success and sets

*result to NULL.
This commit is contained in:
Sascha Schumann
2000-05-24 14:41:28 +00:00
parent 3d939af4a3
commit faf4f764b7

View File

@@ -108,8 +108,10 @@ PHPAPI int php_readdir_r(DIR *dirp, struct dirent *entry,
if (ret == 0)
*result = entry;
else
else if (errno == 0) {
*result = NULL;
ret = 0;
}
return ret;
#else