diff options
author | Xinchen Hui <laruence@php.net> | 2015-08-18 18:33:07 +0800 |
---|---|---|
committer | Xinchen Hui <laruence@php.net> | 2015-08-18 18:33:07 +0800 |
commit | dca6d1027a4b4c544c283d0021c0725b9a27cfeb (patch) | |
tree | b0e0cdb85357e037a804ef3af84efe29b25c6ca7 /ext/pdo_mysql/mysql_statement.c | |
parent | 8df34610869566c5af3f21efa2575e6e2e262d74 (diff) | |
download | php-git-dca6d1027a4b4c544c283d0021c0725b9a27cfeb.tar.gz |
Fixed bug #70272 (Segfault in pdo_mysql)
Diffstat (limited to 'ext/pdo_mysql/mysql_statement.c')
-rw-r--r-- | ext/pdo_mysql/mysql_statement.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo_mysql/mysql_statement.c b/ext/pdo_mysql/mysql_statement.c index 551960560e..f55843072f 100644 --- a/ext/pdo_mysql/mysql_statement.c +++ b/ext/pdo_mysql/mysql_statement.c @@ -88,8 +88,8 @@ static int pdo_mysql_stmt_dtor(pdo_stmt_t *stmt) /* {{{ */ } #endif - - if (S->H->server) { + if (IS_OBJ_VALID(EG(objects_store).object_buckets[Z_OBJ_HANDLE(stmt->database_object_handle)]) + && (!(GC_FLAGS(Z_OBJ(stmt->database_object_handle)) & IS_OBJ_FREE_CALLED))) { while (mysql_more_results(S->H->server)) { MYSQL_RES *res; if (mysql_next_result(S->H->server) != 0) { |