1
0
mirror of https://github.com/php/php-src.git synced 2026-04-18 05:21:02 +02:00

Convert string|array union parameter types

Closes GH-4995
This commit is contained in:
Máté Kocsis
2019-12-10 00:03:02 +01:00
parent 621842e3f5
commit 2ab123b84e
8 changed files with 63 additions and 82 deletions

View File

@@ -3929,7 +3929,7 @@ PHP_FUNCTION(mb_send_mail)
zend_string_release_ex(tmp_headers, 0);
break;
case IS_ARRAY:
str_headers = php_mail_build_headers(headers);
str_headers = php_mail_build_headers(Z_ARRVAL_P(headers));
break;
default:
php_error_docref(NULL, E_WARNING, "headers parameter must be string or array");