From df60983b753df88b58e52931ae78508255abf298 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sat, 9 Jul 2005 04:43:16 +0000 Subject: [PATCH] Added missing header check. --- ext/pdo_mysql/mysql_statement.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/pdo_mysql/mysql_statement.c b/ext/pdo_mysql/mysql_statement.c index 0c59eb533c9..930afae4417 100755 --- a/ext/pdo_mysql/mysql_statement.c +++ b/ext/pdo_mysql/mysql_statement.c @@ -483,7 +483,10 @@ static int pdo_mysql_stmt_col_meta(pdo_stmt_t *stmt, long colno, zval *return_va static int pdo_mysql_stmt_cursor_closer(pdo_stmt_t *stmt TSRMLS_DC) { pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data; +#if HAVE_MYSQL_STMT_PREPARE return mysql_stmt_free_result(S->stmt); +#endif + return 1; } struct pdo_stmt_methods mysql_stmt_methods = {