mirror of
https://github.com/php/php-src.git
synced 2024-11-25 10:54:15 +08:00
Added missing header check.
This commit is contained in:
parent
d3a9f93111
commit
df60983b75
@ -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)
|
static int pdo_mysql_stmt_cursor_closer(pdo_stmt_t *stmt TSRMLS_DC)
|
||||||
{
|
{
|
||||||
pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data;
|
pdo_mysql_stmt *S = (pdo_mysql_stmt*)stmt->driver_data;
|
||||||
|
#if HAVE_MYSQL_STMT_PREPARE
|
||||||
return mysql_stmt_free_result(S->stmt);
|
return mysql_stmt_free_result(S->stmt);
|
||||||
|
#endif
|
||||||
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct pdo_stmt_methods mysql_stmt_methods = {
|
struct pdo_stmt_methods mysql_stmt_methods = {
|
||||||
|
Loading…
Reference in New Issue
Block a user