mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Make zval2myslqnd implementations aware of inheritance
This commit is contained in:
parent
bcb39d9c6a
commit
d3a4af4db8
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue