|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-27 22:02 UTC] wez@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 04:00:02 2025 UTC |
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