com php-src: Fixed tests but introduce segfaults (behavior same as trunk): ext/dba/dba.c

From: Date: Wed, 21 May 2014 15:11:02 +0000
Subject: com php-src: Fixed tests but introduce segfaults (behavior same as trunk): ext/dba/dba.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-78488@lists.php.net to get a copy of this message
Commit: f9c3d09f1c4ae1598d677356006681ee5b9ba269 Author: Xinchen Hui <laruence@php.net> Wed, 21 May 2014 23:09:55 +0800 Parents: ad1ef9b6291bb92518a6f2b959d899cebd2149a5 Branches: phpng Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=f9c3d09f1c4ae1598d677356006681ee5b9ba269 Log: Fixed tests but introduce segfaults (behavior same as trunk) Changed paths: M ext/dba/dba.c Diff: diff --git a/ext/dba/dba.c b/ext/dba/dba.c index 15b5ad9..7b675ac 100644 --- a/ext/dba/dba.c +++ b/ext/dba/dba.c @@ -986,11 +986,7 @@ PHP_FUNCTION(dba_close) DBA_FETCH_RESOURCE(info, id); - if (info->flags & DBA_PERSISTENT) { - zend_list_delete(Z_RES_P(id)); - } else { - zend_list_close(Z_RES_P(id)); - } + zend_list_close(Z_RES_P(id)); } /* }}} */

« previous php.cvs (#78488) next »