From: [EMAIL PROTECTED] Operating system: gentoo linux PHP version: 5.1.0b3 PHP Bug Type: Reproducible crash Bug description: pdo-pgsql crashes by PDO_FETCH_LAZY attribute
Description: ------------ the code is self-explaining, i am running mod_php 5.1.0b3 with apache 1.3.33 and postgresql 8.0.1 Reproduce code: --------------- <pre><?php $db = new PDO("pgsql:host=localhost dbname=foo user=bar password=''"); // need to select at least 2 rows to make it crash $query = 'SELECT pcontact_id FROM pcontacts LIMIT 2'; // works fine $s = $db->query($query); $s->setFetchMode(PDO_FETCH_ASSOC); foreach($s AS $row) var_dump($s); // segfaults foreach($db->query($query, PDO_FETCH_LAZY) AS $row) var_dump($row); exit; ?> -- Edit bug report at http://bugs.php.net/?id=33785&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=33785&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=33785&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=33785&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=33785&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=33785&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=33785&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=33785&r=needscript Try newer version: http://bugs.php.net/fix.php?id=33785&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=33785&r=support Expected behavior: http://bugs.php.net/fix.php?id=33785&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=33785&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=33785&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=33785&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=33785&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=33785&r=dst IIS Stability: http://bugs.php.net/fix.php?id=33785&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=33785&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=33785&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=33785&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=33785&r=mysqlcfg