#35358 [Opn->Fbk]: Incorrect error messages for PDO class constants

From: Date: Wed, 23 Nov 2005 22:57:46 +0000
Subject: #35358 [Opn->Fbk]: Incorrect error messages for PDO class constants
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-88810@lists.php.net to get a copy of this message
ID: 35358 Updated by: helly@php.net Reported By: stochnagara at hotmail dot com -Status: Open +Status: Feedback Bug Type: PDO related Operating System: irrelevant PHP Version: 5CVS-2005-11-23 (snap) -Assigned To: +Assigned To: helly New Comment: Any chgance you can provide a 'cvs diff -u' patch? Previous Comments: ------------------------------------------------------------------------ [2005-11-23 23:53:09] stochnagara at hotmail dot com 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 this bug report at http://bugs.php.net/?id=35358&edit=1

« previous php.bugs (#88810) next »