Every once in a while I get to fix/add stuff from my PHP days. Today I installed php5 on a fresh Ubuntu Feisty install I need to host a NuSOAP based service API to a client. However, the Ubuntu php module comes with SOAP support built in. The PHP bundled SOAP implementation is far from complete and I guess most folks still prefer the good ‘ol NuSOAP. The problem is this:
Cannot redeclare class soapclient
Both NuSOAP and PHP’s SOAP use the same class name for the client implementation. Instead of uninstalling Feisty’s PHP module and rolling my own I decided to simply patch the NuSOAP 0.7.2 .php file and rename the class to nusoapclient. Saves a boatload of time IMHO. Patch to NuSOAP 0.7.2
-
Archives
- July 2011
- July 2010
- April 2010
- July 2009
- June 2009
- February 2009
- January 2009
- November 2008
- October 2008
- July 2008
- June 2008
- May 2008
- April 2008
- January 2008
- November 2007
- October 2007
- September 2007
- August 2007
- May 2007
- April 2007
- December 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- February 2005
-
Meta
I JUST ran into this problem and you’re the only one I’ve seen with this fix…I’m looking forward to giving it a try, but I’m really not sure what to do with this DIFF file? I can see its a text file, and its got sections of code, but it looks like it’s formatted for some program to do code replacement in the nusoap.php file? Can you tell me which program it is that is supposed to do this? Otherwise, I can try to decipher what the section numbers mean and update nusoap.php manually…are the “-6392,7 +6392,7″ tags indicating line numbers? Just guessing at it so far…let me know, thanks!
nevermind I just read up on SVN