ID: 38253 Updated by: [EMAIL PROTECTED] Reported By: stochnagara at hotmail dot com -Status: Open +Status: Closed Bug Type: PDO related Operating System: windows xp PHP Version: 5.2.0RC1 New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2006-07-30 05:06:39] stochnagara at hotmail dot com Sorry, but I don't have Visual Studio installed and thus I cannot provide you a backtrace. ------------------------------------------------------------------------ [2006-07-29 21:04:06] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php for *NIX and http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32 Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. ------------------------------------------------------------------------ [2006-07-29 18:25:17] stochnagara at hotmail dot com Same applies to this: $pdo->setAttribute (PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_FUNC); ------------------------------------------------------------------------ [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