|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34809 PDO FETCH_INTO crashes Apache
Submitted: 2005-10-10 12:58 UTC Modified: 2005-10-10 16:44 UTC
From: stochnagara at hotmail dot com Assigned: wez (profile)
Status: Closed Package: PDO related
PHP Version: 5CVS-2005-10-10 (snap) OS: windows xp
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: stochnagara at hotmail dot com
New email:
PHP Version: OS:


 [2005-10-10 12:58 UTC] stochnagara at hotmail dot com
The code bellow crashes Apache server. The crash is similar to bug #34802 but the crash code is quite different.

Reproduce code:
$pdo = new PDO('mysql:host=localhost;dbname=borovo');
$sth = $pdo->prepare ('SELECT nid,type FROM node');
var_dump ($sth->fetch (PDO::FETCH_INTO, 3));

Expected result:
Warning: PDOStatement::fetch() [function.fetch]: SQLSTATE[HY000]: General error: PDO_FETCH_FUNC is only allowed in PDOStatement::fetchAll() in C:\Program Files\Apache Group\Apache2\htdocs\boroinvest\test.php on line 5

Actual result:
Apache crashes.

Log message:
Parent: child process exited with status 3221225477 -- Restarting.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-10 13:03 UTC] stochnagara at hotmail dot com

"General error: PDO_FETCH_FUNC is only allowed in"

should be read as 

"General error: PDO_FETCH_INTO is only allowed in"

or just fetch record in mode FETCH_INTO if this is allowed.
 [2005-10-10 13:05 UTC]
Assigned to the maintainer.
 [2005-10-10 16:44 UTC]
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
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon May 23 13:05:44 2022 UTC