Skip to content

Commit 3cddf1d

Browse files
committed
Fix bad cast which leads to crashes!
1 parent 2f3adeb commit 3cddf1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pdo_mysql/pdo_mysql.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ static MYSQLND *pdo_mysql_convert_zv_to_mysqlnd(zval *zv TSRMLS_DC)
5858
return NULL;
5959
}
6060

61-
return ((pdo_mysql_db_handle *)dbh)->server;
61+
return ((pdo_mysql_db_handle *)dbh->driver_data)->server;
6262
}
6363
return NULL;
6464
}

0 commit comments

Comments
 (0)