ID:               35837
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]

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

Reply via email to