logo       

Re: More noob questions: nusoap client in daemon script: msg#00033

php.nusoap.general

Subject: Re: More noob questions: nusoap client in daemon script

Hi,

I usually empty the "debug_str" parameter. In mu NuSoap implementation I didn't even find a ResetDebug method. As far as I experienced the debug_str parameter is the only parameter that could couse a memory leak.

with kind regards,

Jan Horsman

Gaetano Giunta wrote:

The nusoap objects appear to always send debug info to a memory buffer (member
variable), without ever clenaing it up.

If the client making calls is never destroyed, memory usage will eventually
leak to the point where php crashes.

It is easy enough to add a call here and there to ResetDebug, but I think it
would be a better default to have the client reset its internal debug bufers on
its own.

I also find it strange to have debug info added to object instead of flushed to
screen: if a php error halts the script halfway through, the debug info will be
available no more to find out where the problem was.

Anyway, the real question was: are there other memleaks apart from the one
described above that would prevent to use a soap client in a daemon script?

Bye
Gaetano
HW¦j)b²ÊhžÊ+yÖòNˆLúèvç-è?yšv'zË\jwbv·¯‰ì,¢xn?ÚÞvÊ!3ë¡Ûœ¶Çë¢jÞj[¬z»ŠÇ(½êð†'!¦º¹Ël¶»¥ÊX¯zêm¢Ø^‡*^JÖ«¶·šv)àžŒ!¶Úý§l¢Çgr‰¿iØ?®å©e¡È?^÷ª)ÉrCn²†©?éÞ­©fj)bž
b²Ón²†©?éÞ­©eŠËl²‹«qçè®§zØm¶›?þX¬¶Ë(º·~Šàzw­þX¬¶ÏåŠËb?ú?žë(j˜?êÚl===



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise