Re: pear::HTTP_Request and pear::Net_Socket

From: Date: Fri, 21 Apr 2006 10:47:15 +0000
Subject: Re: pear::HTTP_Request and pear::Net_Socket
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23792@lists.php.net to get a copy of this message
On 4/20/06, Manuel Lemos <mlemos@acm.org> wrote: > Hello, Hi Manuel! > > on 04/18/2006 12:17 AM Ryan Escarez said the following: > > Hi, > > > > I'm using pear::HTTP_Request and I'm having difficulty gaining memory > > that already used by pear::Net_Socket. I got the following error after > > running my script > > > > <b>Fatal error</b>: Allowed memory size of 8388608 bytes exhausted > > (tried to allocate 4097 bytes) in > > <b>/usr/share/pear/Net/Socket.php</b> on line <b>243</b><br > > /> > > Allowed memory size of 8388608 bytes exhausted (tried to allocate 0 bytes) > > > > Is it possible to free up memory that already used by > > pear::Net_Socket? I've tried checking on how many memory it consumed > > and i found out that after doing a 20,000 pear::HTTP_Request loop, it > > eats almost 8MB of RAM on 50% or 10,000 pear::HTTP_Request loop only > > and the script stop. AFAIK increasing 8MB memory limit is not > > advisable. Any idea or workaround on this? > > I don't know about PEAR HTTP_Request because I do not use it. I use this > other HTTP client class and it works well because it does not store the > data of long requests. You can use it to stream data for download or > upload. Just try it and let me know if you still have problems. > > http://www.phpclasses.org/httpclient > Will try this, and hopefuly it works. 'Will inform you the result of my test. OT: I haven't expect that we have English Português on this list. Happy coding guys! -- Ryan Escarez CEBB F1E4 1E39 EC48 F05D 6B72 9C11 DD88 5E39 E471 $ gpg --keyserver pgp.mit.edu --recv-keys 0x5E39E471 main(k){float i,j,r,x,y=-16;while(puts(""),y++<15) for(x=0;x++<84;putchar(" .:-;!/>)|&IH%*#"[k&15])) for(i=k=r=0;j=r*r-i*i-2+x/25,i=2*r*i+y/10,j*j+i*i<11&&k++<111;r=j);}

« previous php.pear.general (#23792) next »