com php-src: Fixed segfault in closedir: ext/standard/dir.c

From: Date: Sun, 02 Mar 2014 14:35:24 +0000
Subject: com php-src: Fixed segfault in closedir: ext/standard/dir.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-77834@lists.php.net to get a copy of this message
Commit: ce03111e50a075b647d50b28f20698b679aefc4a Author: Xinchen Hui <laruence@gmail.com> Sun, 2 Mar 2014 22:35:24 +0800 Parents: 38b72bd783ba889d72b2135c4936e1bdd936fa9b Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ce03111e50a075b647d50b28f20698b679aefc4a Log: Fixed segfault in closedir Changed paths: M ext/standard/dir.c Diff: diff --git a/ext/standard/dir.c b/ext/standard/dir.c index c92e3bb..ae38a20 100644 --- a/ext/standard/dir.c +++ b/ext/standard/dir.c @@ -80,7 +80,7 @@ static zend_class_entry *dir_class_entry_ptr; } \ if (ZEND_NUM_ARGS() == 0) { \ myself = getThis(); \ - if (myself) { \ + if (!ZVAL_IS_UNDEF(myself)) { \ if ((tmp = zend_hash_str_find(Z_OBJPROP_P(myself), "handle", sizeof("handle")-1)) == NULL) { \ php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to find my handle property"); \ RETURN_FALSE; \

« previous php.cvs (#77834) next »