mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
ext/soap: use zend_string_equals_literal() instead of strcmp() (#21405)
This commit is contained in:
committed by
GitHub
parent
9a73c009f3
commit
7f20223143
@@ -2439,13 +2439,7 @@ iterator_failed_to_get:
|
||||
if (style == SOAP_ENCODED) {
|
||||
if (soap_version == SOAP_1_1) {
|
||||
smart_str_0(&array_type);
|
||||
#if defined(__GNUC__) && __GNUC__ >= 11
|
||||
ZEND_DIAGNOSTIC_IGNORED_START("-Wstringop-overread")
|
||||
#endif
|
||||
bool is_xsd_any_type = strcmp(ZSTR_VAL(array_type.s),"xsd:anyType") == 0;
|
||||
#if defined(__GNUC__) && __GNUC__ >= 11
|
||||
ZEND_DIAGNOSTIC_IGNORED_END
|
||||
#endif
|
||||
bool is_xsd_any_type = zend_string_equals_literal(array_type.s, "xsd:anyType");
|
||||
if (is_xsd_any_type) {
|
||||
smart_str_free(&array_type);
|
||||
smart_str_appendl(&array_type,"xsd:ur-type",sizeof("xsd:ur-type")-1);
|
||||
|
||||
Reference in New Issue
Block a user