cvs: pear /SOAP Server.php

From: Date: Thu, 18 Jul 2002 01:50:09 +0000
Subject: cvs: pear /SOAP Server.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5170@lists.php.net to get a copy of this message
shane Wed Jul 17 21:50:09 2002 EDT Modified files: /pear/SOAP Server.php Log: fix for having multiple server objects in the same namespace This fixes the interop server Index: pear/SOAP/Server.php diff -u pear/SOAP/Server.php:1.23 pear/SOAP/Server.php:1.24 --- pear/SOAP/Server.php:1.23 Sat Jul 13 16:43:10 2002 +++ pear/SOAP/Server.php Wed Jul 17 21:50:09 2002 @@ -17,7 +17,7 @@ // | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author | // +----------------------------------------------------------------------+ // -// $Id: Server.php,v 1.23 2002/07/13 20:43:10 shane Exp $ +// $Id: Server.php,v 1.24 2002/07/18 01:50:09 shane Exp $ // require_once 'SOAP/Base.php'; @@ -40,7 +40,7 @@ * originaly based on SOAPx4 by Dietrich Ayala http://dietrich.ganx4.com/soapx4 * * @access public -* @version $Id: Server.php,v 1.23 2002/07/13 20:43:10 shane Exp $ +* @version $Id: Server.php,v 1.24 2002/07/18 01:50:09 shane Exp $ * @package SOAP::Client * @author Shane Caraveo <shane@php.net> Conversion to PEAR and updates * @author Dietrich Ayala <dietrich@ganx4.com> Original Author @@ -458,11 +458,14 @@ /* if it's in an object, it's ok */ if (isset($this->dispatch_objects[$namespace])) { - $obj =& $this->dispatch_objects[$namespace]; - if (method_exists($obj, $methodname)) { - $this->method_namespace = $namespace; - $this->soapobject =& $obj; - return TRUE; + $c = count($this->dispatch_objects[$namespace]); + for ($i=0; $i < $c; $i++) { + $obj =& $this->dispatch_objects[$namespace][$i]; + if (method_exists($obj, $methodname)) { + $this->method_namespace = $namespace; + $this->soapobject =& $obj; + return TRUE; + } } } return FALSE; @@ -479,7 +482,10 @@ return FALSE; } } - $this->dispatch_objects[$namespace] =& $obj; + if (!isset($this->dispatch_objects[$namespace])) { + $this->dispatch_objects[$namespace] = array(); + } + $this->dispatch_objects[$namespace][] =& $obj; return TRUE; }

« previous php.pear.cvs (#5170) next »