[php-src] master: ext/soap: backport GH-22586 fix.

David Carlier <[email protected]>
Newsgroups gmane.comp.php.cvs.general
Message-ID <[email protected]>
Author: David Carlier (devnexen)
Date: 2026-07-04T17:01:02+01:00

Commit: https://github.com/php/php-src/commit/cf2f699a6de663554c000bc0cdf26e3a18f5ae9f
Raw diff: https://github.com/php/php-src/commit/cf2f699a6de663554c000bc0cdf26e3a18f5ae9f.diff

ext/soap: backport GH-22586 fix.

close GH-22592

Changed paths:
  M  ext/soap/soap.c


Diff:

diff --git a/ext/soap/soap.c b/ext/soap/soap.c
index ce12aeaf364c..3d5536ef8628 100644
--- a/ext/soap/soap.c
+++ b/ext/soap/soap.c
@@ -2235,6 +2235,10 @@ static bool do_request(zval *this_ptr, xmlDoc *request, const char *location, co
 		return false;
 	}
 
+	ZVAL_UNDEF(&params[0]);
+	ZVAL_UNDEF(&params[1]);
+	ZVAL_UNDEF(&params[2]);
+
 	zend_try {
 		zval *trace = Z_CLIENT_TRACE_P(this_ptr);
 		if (Z_TYPE_P(trace) == IS_TRUE) {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.