Commit f33091c9723 for php.net

commit f33091c97234cb07858c82008c02242e16b6dabe
Merge: bc0871dd3df c4c1261196f
Author: ndossche <7771979+ndossche@users.noreply.github.com>
Date:   Tue Mar 10 21:08:51 2026 +0100

    Merge branch 'PHP-8.4' into PHP-8.5

    * PHP-8.4:
      soap: Fix const violation

diff --cc ext/soap/php_encoding.c
index cdae82a7c98,f704c624875..abc542de9d0
--- a/ext/soap/php_encoding.c
+++ b/ext/soap/php_encoding.c
@@@ -2522,9 -2527,10 +2522,10 @@@ static zval *to_zval_array(zval *ret, e
  	FIND_XML_NULL(data, ret);

  	if (data &&
 -	    (attr = get_attribute(data->properties,"arrayType")) &&
 +	    (attr = get_soap_enc_attribute(data->properties,"arrayType")) &&
  	    attr->children && attr->children->content) {
- 		char *type, *end, *ns;
+ 		const char *type;
+ 		char *end, *ns;
  		xmlNsPtr nsptr;

  		parse_namespace(attr->children->content, &type, &ns);
@@@ -2537,11 -2544,11 +2539,11 @@@
  			dims = get_position(dimension, end+1);
  		}
  		if (nsptr != NULL) {
- 			enc = get_encoder(SOAP_GLOBAL(sdl), (char*)nsptr->href, type);
+ 			enc = get_encoder(SOAP_GLOBAL(sdl), (char*)nsptr->href, type_dup);
  		}
  		if (ns) {efree(ns);}
-
+ 		if (type_dup) efree(type_dup);
 -	} else if ((attr = get_attribute(data->properties,"itemType")) &&
 +	} else if ((attr = get_soap_enc_attribute(data->properties,"itemType")) &&
  	    attr->children &&
  	    attr->children->content) {
  		const char *type;