weregod
unserializer
Много ржал:
приводит к
PHP:
$pdo = new PDO(
"mysql:host=127.0.0.1;dbname=test;charset=utf8mb4",
"root",
"",
[
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
],
);
$pdo->exec("SELECT 1");
$pdo->exec("SELECT 1");
Код:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.'