Bug #70066 [NEW]: Unexpected "Cannot execute queries while other unbuffered queries"

From: Date: Mon, 13 Jul 2015 18:32:12 +0000
Subject: Bug #70066 [NEW]: Unexpected "Cannot execute queries while other unbuffered queries"
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194411@lists.php.net to get a copy of this message
From: david at grudl dot com Operating system: PHP version: 5.6.11 Package: PDO MySQL Bug Type: Bug Bug description:Unexpected "Cannot execute queries while other unbuffered queries" Description: ------------ This code throws "SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active" on line 4. The solution is to use exec() instead of query(), but I think that it is bug since there is no other active query. Test script: --------------- $pdo = new PDO('mysql:host=127.0.0.1', '...', '...'); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, 0); $pdo->query('USE nette_test'); -- Edit bug report at https://bugs.php.net/bug.php?id=70066&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70066&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70066&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70066&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70066&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70066&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70066&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70066&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70066&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70066&r=support Expected behavior: https://bugs.php.net/fix.php?id=70066&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70066&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70066&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70066&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70066&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70066&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70066&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70066&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70066&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70066&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70066&r=mysqlcfg

« previous php.bugs (#194411) next »