From: stochnagara at hotmail dot com
Operating system: windows xp
PHP version: 5.1.0
PHP Bug Type: PDO related
Bug description: PDO crashes on FETCH_LAZY and fetchAll
Description:
------------
PHP crashes when FETCH_LAZY is used in combination with fetchAll. See the
sample below.
Reproduce code:
---------------
<?
$pdo = new PDO("sqlite::memory:");
$pdo->query ("CREATE TABLE test (a integer primary key, b text, c
integer)");
$pdo->query("insert into test (b, c) values (1, 2)");
var_dump($pdo->query ("select a, b, c from
test")->fetchAll(PDO::FETCH_LAZY));
Expected result:
----------------
no error
Actual result:
--------------
Apache crashes
--
Edit bug report at http://bugs.php.net/?id=35431&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35431&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=35431&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=35431&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35431&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35431&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35431&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35431&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35431&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35431&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35431&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=35431&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=35431&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35431&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35431&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35431&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35431&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35431&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35431&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35431&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35431&r=mysqlcfg