From:             mrethers at ebcubes dot com
Operating system: Linux/Windows
PHP version:      5.1.1
PHP Bug Type:     PDO related
Bug description:  PDO crashes when fetch mode is not valid

Description:
------------
The error message asks to report the bug so here it is ...

Reproduce code:
---------------
$stmt->setFetchMode(WHATEVER_NOT_PDO_CONSTANT)

Expected result:
----------------
I would expect a more helpfull message than Numeric value out of range,
maybe cast an exception or something, with a unvalid fetch mode message

Actual result:
--------------
SQLSTATE[22003]: Numeric value out of range: unhandled mode; this is a PDO
bug, please report it

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

Reply via email to