| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2006-07-29 18:25 UTC] stochnagara at hotmail dot com
  [2006-07-29 21:04 UTC] tony2001@php.net
  [2006-07-30 05:06 UTC] stochnagara at hotmail dot com
  [2006-07-30 11:20 UTC] tony2001@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 02:00:01 2025 UTC | 
Description: ------------ PDO crashes apache when I use the new PDO::ATTR_DEFAULT_FETCH_MODE in combination with PDO::FETCH_CLASS. Reproduce code: --------------- <? $pdo = new PDO ('sqlite::memory:'); $pdo->exec ("create table test (id integer primary key, n text)"); $pdo->exec ("INSERT INTO test (n) VALUES ('hi')"); $pdo->setAttribute (PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_CLASS); $stmt = $pdo->prepare ("SELECT * FROM test"); $stmt->execute(); var_dump($stmt->fetchAll()); Expected result: ---------------- some error message Actual result: -------------- apache crashes