Skip to content

Commit 8735ae9

Browse files
robertnisipeanucmb69
authored andcommitted
Fix GH-8578: Error on wrong parameter on SoapHeader constructor
Closes GH-8579.
1 parent 84ea0aa commit 8735ae9

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ PHP NEWS
1818
. Fixed bug GH-8466 (ini_get() is optimized out when the option does not
1919
exist). (Arnaud)
2020

21+
- Soap:
22+
. Fixed bug GH-8578 (Error on wrong parameter on SoapHeader constructor).
23+
(robertnisipeanu)
24+
2125
- SPL:
2226
. Fixed bug GH-8235 (iterator_count() may run indefinitely). (cmb)
2327

ext/soap/soap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ PHP_METHOD(SoapHeader, __construct)
580580
if (ZSTR_LEN(actor_str) > 2) {
581581
add_property_stringl(this_ptr, "actor", ZSTR_VAL(actor_str), ZSTR_LEN(actor_str));
582582
} else {
583-
zend_argument_value_error(2, "must be longer than 2 characters");
583+
zend_argument_value_error(5, "must be longer than 2 characters");
584584
RETURN_THROWS();
585585
}
586586
} else if (!actor_is_null) {

0 commit comments

Comments
 (0)