mirror of
https://github.com/php/php-src.git
synced 2024-09-22 18:37:25 +00:00
- Removed unnecessary strcmp call (thanks Tony)
This commit is contained in:
parent
d2d4e044c7
commit
e90d487720
@ -601,7 +601,7 @@ static inline void fetch_value(pdo_stmt_t *stmt, zval *dest, int colno, int *typ
|
||||
case PDO_PARAM_LOB:
|
||||
if (value == NULL) {
|
||||
ZVAL_NULL(dest);
|
||||
} else if (strcmp(value, "") == 0) {
|
||||
} else if (value[0] == '\0') {
|
||||
ZVAL_EMPTY_STRING(dest);
|
||||
} else if (value_len == 0) {
|
||||
if (stmt->dbh->stringify || new_type == PDO_PARAM_STR) {
|
||||
|
Loading…
Reference in New Issue
Block a user