#35358 [NEW]: Incorrect error messages for PDO class constants
From: stochnagara at hotmail dot com
Operating system: irrelevant
PHP version: 5CVS-2005-11-23 (snap)
PHP Bug Type: PDO related
Bug description: Incorrect error messages for PDO class constants
Description:
------------
I found the following inconstitences in some error string for PDO.
pdo_dbh.c:
line 511, 533, 720, 731, 757: PDO_ATTR_STATEMENT_CLASS should be replaced
with PDO::ATTR_STATEMENT_CLASS
pdo_stmt.c:
lines 1122, 1137 PDO_FETCH_SERIALIZE -> PDO::FETCH_SERIALIZE
lines 1130 : PDO_FETCH_FUNC -> PDO::FETCH_FUNC
lines 1137, 1141 : PDO_FETCH_CLASS -> PDO::FETCH_CLASS
lines 1141 : PDO_FETCH_CLASS_TYPE -> PDO::FETCH_CLASS_TYPE
lines 1369 : PDO_FETCH_COLUMN -> PDO::FETCH_COLUMN
These are not C constants but part of error message strings so :: is
needed.
--
Edit bug report at http://bugs.php.net/?id=35358&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35358&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35358&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35358&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=35358&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35358&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35358&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35358&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35358&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35358&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35358&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35358&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35358&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35358&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35358&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35358&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35358&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35358&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35358&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35358&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35358&r=mysqlcfg
Thread (5 messages)
- stochnagara at hotmail dot com