summaryrefslogtreecommitdiff
path: root/ext/pdo_mysql
diff options
context:
space:
mode:
authorJohannes Schlüter <johannes@php.net>2013-07-16 13:55:32 +0200
committerJohannes Schlüter <johannes@php.net>2013-07-16 13:55:32 +0200
commite1a0c90b8b032ce8a677b5aeca9920ceac41fc72 (patch)
tree18919dd757002279e9ad803f600b186f27095dc2 /ext/pdo_mysql
parent54b740a7e1ceea80690d47833a3fe667ce839522 (diff)
parentd3a4af4db8d44f3d4a353589857c3c016ba8beda (diff)
downloadphp-git-e1a0c90b8b032ce8a677b5aeca9920ceac41fc72.tar.gz
Merge branch 'PHP-5.4' into PHP-5.5
Diffstat (limited to 'ext/pdo_mysql')
-rw-r--r--ext/pdo_mysql/pdo_mysql.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo_mysql/pdo_mysql.c b/ext/pdo_mysql/pdo_mysql.c
index ed51e947cd..401d20d8b3 100644
--- a/ext/pdo_mysql/pdo_mysql.c
+++ b/ext/pdo_mysql/pdo_mysql.c
@@ -61,7 +61,7 @@ ZEND_DECLARE_MODULE_GLOBALS(pdo_mysql)
#include "ext/mysqlnd/mysqlnd_reverse_api.h"
static MYSQLND * pdo_mysql_convert_zv_to_mysqlnd(zval * zv TSRMLS_DC)
{
- if (Z_TYPE_P(zv) == IS_OBJECT && Z_OBJCE_P(zv) == php_pdo_get_dbh_ce()) {
+ if (Z_TYPE_P(zv) == IS_OBJECT && instanceof_function(Z_OBJCE_P(zv), php_pdo_get_dbh_ce() TSRMLS_CC)) {
pdo_dbh_t * dbh = zend_object_store_get_object(zv TSRMLS_CC);
if (!dbh || dbh->driver != &pdo_mysql_driver) {