#35430 [Opn->Csd]: PDO crashes apache on incorrect FETCH_FUNC use.

From: Date: Sun, 27 Nov 2005 21:01:06 +0000
Subject: #35430 [Opn->Csd]: PDO crashes apache on incorrect FETCH_FUNC use.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89123@lists.php.net to get a copy of this message
 ID:               35430
 Updated by:       tony2001@php.net
 Reported By:      stochnagara at hotmail dot com
-Status:           Open
+Status:           Closed
 Bug Type:         PDO related
 Operating System: windows xp
 PHP Version:      5.1.0
 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:
------------------------------------------------------------------------

[2005-11-27 21:26:23] stochnagara at hotmail dot com

Description:
------------
When PDO::FETCH_FUNC is used without passing the function name as
additional argument, Apache crashes.

Reproduce code:
---------------
<?
$pdo = new PDO("sqlite::memory:");
$pdo->query ("CREATE TABLE test (a integer primary key)");
$pdo->query ("select a from test")->fetchAll(PDO::FETCH_FUNC);


Expected result:
----------------
no error

Actual result:
--------------
Apache crashes.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35430&edit=1


Thread (2 messages)

« previous php.bugs (#89123) next »