diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2002-10-07 16:46:38 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2002-10-07 16:46:38 +0000 |
commit | ef9b51bcb04e768075898621a28cf1b5a7a1551c (patch) | |
tree | f3c9c6d3cf14a18442ad1687326794f6017130c7 /ext/mbstring/php_mbregex.c | |
parent | 9b849892eacba70705fa17674f9fdb2242e6036a (diff) | |
download | php-git-ef9b51bcb04e768075898621a28cf1b5a7a1551c.tar.gz |
readdir() was returning NULL instead of FALSE when used on an invalid
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.
Diffstat (limited to 'ext/mbstring/php_mbregex.c')
0 files changed, 0 insertions, 0 deletions