#48185 [Asn]: warning: value computed is not used in pdo_sqlite_stmt_get_col line 271
| From: | mbeccati@php.net | Date: | Thu, 07 May 2009 22:58:56 +0000 |
| Subject: | #48185 [Asn]: warning: value computed is not used in pdo_sqlite_stmt_get_col line 271 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-136972@lists.php.net to get a copy of this message | ||
ID: 48185
Updated by: mbeccati@php.net
Reported By: mbeccati@php.net
Status: Assigned
Bug Type: PDO related
Operating System: *
PHP Version: 5.3CVS-2009-05-07 (CVS)
Assigned To: mbeccati
New Comment:
Looks like this:
if (*len) {
/* sqlite3.h says "the NUL terminator is included in the byte
count
* for TEXT values" */
*len--;
}
is not needed (anymore?) as sqlite3_column_bytes() is already returning
the correct number of bytes. So fixing the warning by using (*len)--
would in fact break PDO_Sqlite.
Previous Comments:
------------------------------------------------------------------------
[2009-05-07 22:46:23] mbeccati@php.net
Description:
------------
Reported here:
http://gcov.php.net/viewer.php?version=PHP_5_3&func=compile_results
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48185&edit=1