Index: ext/sqlite/sqlite.c =================================================================== RCS file: /repository/php-src/ext/sqlite/sqlite.c,v retrieving revision 1.166.2.13.2.9.2.4 diff -u -p -d -r1.166.2.13.2.9.2.4 sqlite.c --- ext/sqlite/sqlite.c 8 Mar 2008 04:18:29 -0000 1.166.2.13.2.9.2.4 +++ ext/sqlite/sqlite.c 9 Mar 2008 21:15:48 -0000 @@ -408,10 +408,10 @@ static int _clean_unfinished_results(zen if (Z_TYPE_P(le) == le_sqlite_result) { struct php_sqlite_result *res = (struct php_sqlite_result *)le->ptr; if (res->db->rsrc_id == ((struct php_sqlite_db*)db)->rsrc_id) { - real_result_dtor(res TSRMLS_CC); + return ZEND_HASH_APPLY_REMOVE; } } - return 0; + return ZEND_HASH_APPLY_KEEP; } static ZEND_RSRC_DTOR_FUNC(php_sqlite_result_dtor) @@ -1434,10 +1434,7 @@ PHP_FUNCTION(sqlite_close) DB_FROM_ZVAL(db, &zdb); } - zend_hash_apply_with_argument(&EG(regular_list), - (apply_func_arg_t) _clean_unfinished_results, - db TSRMLS_CC); - + zend_hash_apply_with_argument(&EG(regular_list), (apply_func_arg_t) _clean_unfinished_results, db TSRMLS_CC); zend_list_delete(Z_RESVAL_P(zdb)); } /* }}} */