#35694 [Fbk->Opn]: PDO crashes when fetch mode is not valid
| From: | mrethers at ebcubes dot com | Date: | Thu, 15 Dec 2005 22:18:08 +0000 |
| Subject: | #35694 [Fbk->Opn]: PDO crashes when fetch mode is not valid | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-90497@lists.php.net to get a copy of this message | ||
ID: 35694
User updated by: mrethers at ebcubes dot com
Reported By: mrethers at ebcubes dot com
-Status: Feedback
+Status: Open
Bug Type: PDO related
Operating System: Linux/Windows
PHP Version: 5.1.1
New Comment:
No problem, it doesn't really bother, it's just a cosmetic change ...
Are the snapshot stable for a production environment ?
Previous Comments:
------------------------------------------------------------------------
[2005-12-15 23:06:02] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
------------------------------------------------------------------------
[2005-12-15 23:03:27] mrethers at ebcubes dot com
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 this bug report at http://bugs.php.net/?id=35694&edit=1