1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Remove unused variable err in mb_send_mail() (#11285)

This commit is contained in:
Niels Dossche
2023-05-21 11:27:32 +02:00
committed by GitHub
parent 18ca489347
commit 03b163b2b3

View File

@@ -4211,7 +4211,6 @@ PHP_FUNCTION(mb_send_mail)
*head_enc, /* header transfer encoding */
*body_enc; /* body transfer encoding */
const mbfl_language *lang;
int err = 0;
HashTable ht_headers;
zval *s;
@@ -4426,7 +4425,7 @@ PHP_FUNCTION(mb_send_mail)
extra_cmd = php_escape_shell_cmd(ZSTR_VAL(extra_cmd));
}
RETVAL_BOOL(!err && php_mail(to_r, ZSTR_VAL(subject), message, ZSTR_VAL(str_headers), extra_cmd ? ZSTR_VAL(extra_cmd) : NULL));
RETVAL_BOOL(php_mail(to_r, ZSTR_VAL(subject), message, ZSTR_VAL(str_headers), extra_cmd ? ZSTR_VAL(extra_cmd) : NULL));
if (extra_cmd) {
zend_string_release_ex(extra_cmd, 0);