Re: SOAP + globals
| From: | Shane Caraveo | Date: | Sun, 14 Apr 2002 16:50:49 +0000 |
| Subject: | Re: SOAP + globals | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-5469@lists.php.net to get a copy of this message | ||
Yeah, I've had those globals on my mind for the past couple days. I want to eliminate them, but they are used in several classes, and I also dislike the idea of passing them around as params. Any thoughts on this appreciated.
Shane
Kjartan Mannes wrote:
I had some serious problems with SOAP when including it in an include file that was included from within a function. In the end I tracked it down to a problem with the globals. Adding: global $SOAP_XMLSchema, $SOAP_typemap, $SOAP_namespaces, $SOAP_namespaces_default, $SOAP_Encodings, $SOAP_xmlEntities; to globals.php and the functions calling the SOAP_Client methods seems to solve the problem. This more of what I would call a hack than a working solution.