From 3ec9caf51cf55ebe5b9d458ae6b7effcc1de6f02 Mon Sep 17 00:00:00 2001 From: "Matheus A. Nandi" Date: Mon, 23 May 2022 14:07:43 -0300 Subject: [PATCH] Update nusoap.php Adjust on wsdl imports. I don't know if "// TODO: handle imports more properly, grabbing them in-line and nesting them" has saned --- src/nusoap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nusoap.php b/src/nusoap.php index 1f65e66..7d0697b 100755 --- a/src/nusoap.php +++ b/src/nusoap.php @@ -4855,12 +4855,12 @@ function fetchWSDL($wsdl) $imported = 0; // Schema imports foreach ($this->schemas as $ns => $list) { - foreach ($list as $xs) { + foreach ($list as $xsKey => $xs) { $wsdlparts = parse_url($this->wsdl); // this is bogusly simple! foreach ($xs->imports as $ns2 => $list2) { for ($ii = 0; $ii < count($list2); $ii++) { if (array_key_exists($ii, $list2) && (!isset($list2[$ii]['loaded']) || !$list2[$ii]['loaded'])) { - $this->schemas[$ns][$ns2]->imports[$ns2][$ii]['loaded'] = true; + @$this->schemas[$ns][$xsKey]->imports[$ns2][$ii]['loaded'] = true; $url = $list2[$ii]['location']; if ($url != '') { $urlparts = parse_url($url);