Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292997

Unserialised database connection objects don't use Drupal's PDO Statement class

$
0
0

When serialising the datbase connection object we remove the connection, schema and driverClasses objects before hand and reinitialise them when the string is unserialised. However, when recreating the PDO connection class we don't set ATTR_STATEMENT_CLASS again so any statements created use the default PHP PDO class which doesn't have all of the methods Drupal expects and so can lead to issues.

As a quick fix I've added in some code to set the attribute again but it might be better to look into calling out to the constructor again to avoid duplicating code.


Viewing all articles
Browse latest Browse all 292997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>