diff options
author | Felipe Pena <felipe@php.net> | 2008-10-12 13:46:10 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2008-10-12 13:46:10 +0000 |
commit | e90d487720c356eef6d24dde8d607bb165745389 (patch) | |
tree | d4367163a2966c8f3b391f74b6be75c752e63988 /ext/pdo | |
parent | d2d4e044c7c6c3e7a721f8260278be5e13fa1e3d (diff) | |
download | php-git-e90d487720c356eef6d24dde8d607bb165745389.tar.gz |
- Removed unnecessary strcmp call (thanks Tony)
Diffstat (limited to 'ext/pdo')
-rwxr-xr-x | ext/pdo/pdo_stmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c index 5c2f350036..5cea7db43c 100755 --- a/ext/pdo/pdo_stmt.c +++ b/ext/pdo/pdo_stmt.c @@ -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) { |