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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user