summaryrefslogtreecommitdiff
path: root/ext/mysqli/mysqli_prop.c
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2010-03-16 12:36:57 +0000
committerAndrey Hristov <andrey@php.net>2010-03-16 12:36:57 +0000
commit7496cc761ea31bfae22842811020039d1ea25030 (patch)
treef1062c57ceefa6c55b062cc435c60fb352555249 /ext/mysqli/mysqli_prop.c
parentda538251c17e6ad8609f9c6c11388c8dcae4db3c (diff)
downloadphp-git-7496cc761ea31bfae22842811020039d1ea25030.tar.gz
decouple the methods in MYSQLND_STMT from the data,
needed to move to a new structure MYSQLND_STMT. Makes the code cleaner and less error-prone. Also fix PDO/MySQL which directly touch mysqlnd internals instead of using API calls.
Diffstat (limited to 'ext/mysqli/mysqli_prop.c')
-rw-r--r--ext/mysqli/mysqli_prop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqli/mysqli_prop.c b/ext/mysqli/mysqli_prop.c
index 4b38ac871a..04d746566f 100644
--- a/ext/mysqli/mysqli_prop.c
+++ b/ext/mysqli/mysqli_prop.c
@@ -266,7 +266,7 @@ static int stmt_id_read(mysqli_object *obj, zval **retval TSRMLS_DC)
if (!p) {
ZVAL_NULL(*retval);
} else {
- ZVAL_LONG(*retval, p->stmt->stmt_id);
+ ZVAL_LONG(*retval, mysqli_stmt_get_id(p->stmt));
}
return SUCCESS;
}