summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2011-10-05 18:51:15 +0000
committerAndrey Hristov <andrey@php.net>2011-10-05 18:51:15 +0000
commit303f8acd24aa84ba01c335af9dccac7cac2783a6 (patch)
tree41c06b5e36cc8f30dff51e8fdbad65d7da8b9a9e
parentabf58318d22557eb39ba00618be4841bcdccf18d (diff)
downloadphp-git-303f8acd24aa84ba01c335af9dccac7cac2783a6.tar.gz
Fix bad cast which leads to crashes!
-rwxr-xr-xext/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 a88a45736c..7b77a1d680 100755
--- a/ext/pdo_mysql/pdo_mysql.c
+++ b/ext/pdo_mysql/pdo_mysql.c
@@ -58,7 +58,7 @@ static MYSQLND *pdo_mysql_convert_zv_to_mysqlnd(zval *zv TSRMLS_DC)
return NULL;
}
- return ((pdo_mysql_db_handle *)dbh)->server;
+ return ((pdo_mysql_db_handle *)dbh->driver_data)->server;
}
return NULL;
}