mirror of https://github.com/php/php-src
Browse Source
directory handle. If someone forgot to check (as someone here did) that the opendir() succeeded, and then followed the documented usage by checking readdir()!==FALSE things would go awry. The ZEND_FETCH_RESOURCE macro explicitly does a RETURN_NULL on failure which is not what we want in this case, so work around it. No need to change it for the OO case since the object is not created if the opendir fails.migration/unlabaled-1.29.2
1 changed files with 3 additions and 1 deletions
Loading…
Reference in new issue