summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-07-09 04:43:16 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-07-09 04:43:16 +0000
commitdf60983b753df88b58e52931ae78508255abf298 (patch)
tree574e6d3d6ed541eac747f447effbe591bbb38fd7
parentd3a9f93111a53040585189d11e7f978e99379d32 (diff)
downloadphp-git-df60983b753df88b58e52931ae78508255abf298.tar.gz
Added missing header check.
-rwxr-xr-xext/pdo_mysql/mysql_statement.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/pdo_mysql/mysql_statement.c b/ext/pdo_mysql/mysql_statement.c
index 0c59eb533c..930afae441 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 = {