#38253 [Opn]: PDO crashes apache

From: Date: Sat, 29 Jul 2006 18:25:18 +0000
Subject: #38253 [Opn]: PDO crashes apache
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-100066@lists.php.net to get a copy of this message
ID: 38253 User updated by: stochnagara at hotmail dot com Reported By: stochnagara at hotmail dot com Status: Open Bug Type: PDO related Operating System: windows xp PHP Version: 5.2.0RC1 New Comment: Same applies to this: $pdo->setAttribute (PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_FUNC); Previous Comments: ------------------------------------------------------------------------ [2006-07-29 18:10:02] stochnagara at hotmail dot com 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38253&edit=1

« previous php.bugs (#100066) next »