Infinite loop in getTypeDef

Kervala
2011-06-09
2013-06-06
  • Kervala
    Kervala
    2011-06-09

    Hi,

    I found and fixed an infinite loop which occurs always in my case.

    This patch is made from last CVS version 1.137 without it I can't use NuSoap at all.

    Thanks in advance for reviewing it.

    --- D:/nusoap/nusoap.php    Thu Jun 09 16:30:30 2011
    +++ D:/nusoap/new/nusoap_fixed.php  Thu Jun 09 17:09:25 2011
    @@ -1833,6 +1833,8 @@
                    }
                }
                return $this->simpleTypes[$type];
    +       } elseif(!$is_element){
    +           // to fix an infinite loop
            } elseif(isset($this->elements[$type])){
                $this->xdebug("in getTypeDef, found element $type");
                if (!isset($this->elements[$type]['phpType'])) {