#35837 [Opn->Asn]: Crash when using PDO::FETCH_LAZY
| From: | sniper@php.net | Date: | Thu, 29 Dec 2005 12:20:37 +0000 |
| Subject: | #35837 [Opn->Asn]: Crash when using PDO::FETCH_LAZY | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-91216@lists.php.net to get a copy of this message | ||
ID: 35837
Updated by: sniper@php.net
Reported By: mfischer@php.net
-Status: Open
+Status: Assigned
Bug Type: PDO related
Operating System: Windows
PHP Version: 5CVS-2005-12-29 (snap)
-Assigned To:
+Assigned To: wez
New Comment:
Assigned to the maintainer.
Previous Comments:
------------------------------------------------------------------------
[2005-12-29 11:56:36] mfischer@php.net
Description:
------------
PHP crashes at the end of the script when I use PDO::FETCH_LAZY.
I've to say that from my testing (for some clever reason I started to
use PDO::FETCH_LAZY right from the start and therefore have gone
through many obscure crashes and exceptions) that I also saw the
following problems with it:
* it seems to consume memory and never releases it. I've got exception
thrown from the Microsoft Access Driver about running out of memory.
When I stopped using PDO::FETCH_LAZY the exception was never thrown
again.
* I got exception thrown about "invalid table ids" for now reasons
which also went away when I stopped using PDO::FETCH_LAZY
I was working with an Access Database (mdb file) but never fetching big
data but it were about 1500 SQL statements sent.
I've read report http://bugs.php.net/bug.php?id=35431 but I can
confirm
this for the current snapshot also.
Reproduce code:
---------------
$p = new PDO('odbc:driver={Microsoft Access Driver
(*.mdb)};Dbq=beispieldatenbank.mdb');
$s = $p->query("SELECT COUNT(*) FROM ADDRESSES WHERE GUID = ''",
PDO::FETCH_LAZY);
$s->fetch();
Expected result:
----------------
Script should not crash.
Actual result:
--------------
Script crashes and Windows prompts me with a dialog to send a report to
M$
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35837&edit=1