diff options
Diffstat (limited to 'ext/phar/phar_object.c')
| -rw-r--r-- | ext/phar/phar_object.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c index f2fd426241..2e351454f3 100644 --- a/ext/phar/phar_object.c +++ b/ext/phar/phar_object.c @@ -1767,7 +1767,7 @@ PHP_METHOD(Phar, buildFromDirectory)  		if (SUCCESS != object_init_ex(®exiter, spl_ce_RegexIterator)) {  			zval_ptr_dtor(&iteriter); -			zval_dtor(®exiter); +			zval_ptr_dtor(®exiter);  			zend_throw_exception_ex(spl_ce_BadMethodCallException, 0, "Unable to instantiate regex iterator for %s", phar_obj->archive->fname);  			RETURN_FALSE;  		} @@ -2218,7 +2218,7 @@ its_ok:  	ZVAL_NULL(&ret);  	if (SUCCESS != object_init_ex(&ret, ce)) { -		zval_dtor(&ret); +		zval_ptr_dtor(&ret);  		zend_throw_exception_ex(spl_ce_BadMethodCallException, 0, "Unable to instantiate phar object when converting archive \"%s\"", phar->fname);  		return NULL;  	}  | 
