- Fixed bug #48185 removing no-op code
This commit is contained in:
Matteo Beccati 2009-05-07 23:29:54 +00:00
parent bb31072d3e
commit d33fecdde8
2 changed files with 2 additions and 5 deletions

2
NEWS
View file

@ -33,6 +33,8 @@ PHP NEWS
- Added ability to throw exceptions from SQLite3 instead of warnings. (Scott)
- Added startup notices for deprecated ini settings. (Kalle)
- Fixed bug #48185 (warning: value computed is not used in
pdo_sqlite_stmt_get_col line 271). (Matteo)
- Fixed bug #48087 (call_user_method() invalid free of arguments). (Felipe)
- Fixed bug #48060 (pdo_pgsql - large objects are returned as empty). (Matteo)
- Fixed bug #48034 (PHP crashes when script is 8192 (8KB) bytes long). (Dmitry)

View file

@ -265,11 +265,6 @@ static int pdo_sqlite_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, unsi
case SQLITE3_TEXT:
*ptr = (char*)sqlite3_column_text(S->stmt, colno);
*len = sqlite3_column_bytes(S->stmt, colno);
if (*len) {
/* sqlite3.h says "the NUL terminator is included in the byte count
* for TEXT values" */
*len--;
}
return 1;
default: