Skip to content

Commit fc4927c

Browse files
committed
Drop unnecessary zend_string_truncate()
1 parent 060c87c commit fc4927c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ext/pgsql/pgsql.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4795,7 +4795,6 @@ PHP_PGSQL_API zend_result php_pgsql_convert(PGconn *pg_link, const zend_string *
47954795
str = zend_string_alloc(Z_STRLEN_P(val) * 2, 0);
47964796
/* better to use PGSQLescapeLiteral since PGescapeStringConn does not handle special \ */
47974797
ZSTR_LEN(str) = PQescapeStringConn(pg_link, ZSTR_VAL(str), Z_STRVAL_P(val), Z_STRLEN_P(val), NULL);
4798-
str = zend_string_truncate(str, ZSTR_LEN(str), 0);
47994798
ZVAL_STR(&new_val, php_pgsql_add_quotes(str));
48004799
zend_string_release_ex(str, false);
48014800
}

0 commit comments

Comments
 (0)