#35430 [NEW]: PDO crashes apache on incorrect FETCH_FUNC use.

From: Date: Sun, 27 Nov 2005 20:26:23 +0000
Subject: #35430 [NEW]: PDO crashes apache on incorrect FETCH_FUNC use.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89119@lists.php.net to get a copy of this message
From:             stochnagara at hotmail dot com
Operating system: windows xp
PHP version:      5.1.0
PHP Bug Type:     PDO related
Bug description:  PDO crashes apache on incorrect FETCH_FUNC use.

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 bug report at http://bugs.php.net/?id=35430&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=35430&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35430&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35430&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=35430&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=35430&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=35430&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=35430&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=35430&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=35430&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=35430&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=35430&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=35430&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=35430&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=35430&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=35430&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=35430&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=35430&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=35430&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=35430&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=35430&r=mysqlcfg


Thread (2 messages)

« previous php.bugs (#89119) next »