Bug #66558 [NEW]: MYSQL_ATTR_USE_BUFFERED_QUERY = true doesn't work as expected ?
From: netmosfera at email dot it
Operating system:
PHP version: 5.5.8
Package: PDO MySQL
Bug Type: Bug
Bug description:MYSQL_ATTR_USE_BUFFERED_QUERY = true doesn't work as expected ?
Description:
------------
Hello, I'm not entirely sure that this is a bug or the expected behavior
but seems that MYSQL_ATTR_USE_BUFFERED_QUERY is meant to store the whole
recordset in memory, but what it actually seems to do is buffering just
the first record of a resultset, while I was expecting it to use about
the same memory of fetchAll()
It is advertised as "alternative" to fetchAll in
http://php.net/pdo_mysql but again what it seems to do is to
work
exactly like unbuffered queries, except for the fact that the first
record is pre-fetched before the first $stmt->fetch() call.
So, take a look at it! if this is the expected behavior I think it
should be at least documented somehow!
Thank you :)
--
Edit bug report at https://bugs.php.net/bug.php?id=66558&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=66558&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=66558&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=66558&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=66558&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=66558&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=66558&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=66558&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=66558&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=66558&r=support
Expected behavior: https://bugs.php.net/fix.php?id=66558&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=66558&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=66558&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=66558&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=66558&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=66558&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=66558&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=66558&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=66558&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=66558&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=66558&r=mysqlcfg
Thread (4 messages)
- netmosfera at email dot it