Re: Very slow fread() in function parseResponeFile($fp) in RPC.php

From: Date: Tue, 27 Nov 2007 09:23:11 +0000
Subject: Re: Very slow fread() in function parseResponeFile($fp) in RPC.php
References: 1 2 3 4 5 6  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-48617@lists.php.net to get a copy of this message
Hi. I've recompiled PHP without the suhosin patch and removed the eAccelerator extension. The only difference that I noticed was that page loads (without banners) in generall was faster without suhosin (and with eaccelerator). My test-page have the same result although the first counter is a bit higher since eaccelerator now is gone. Before and after while-loop are now: 0.0091829299926758 while ($data = @fread($fp, 8192)) { ... } 0.13566184043884 Thanks. Marco Kaiser wrote:
Hi Christian, can you please turn off the Suhosin patch and the eaccelerator? I think its some type of file open / cache bug maybe comes from an outdated eAccelerator ... can you please verify this and or provide a VLD* debug print to check this? -- Marco * http://www.derickrethans.nl/vld.php
-----Original Message----- From: Christian Marcos [mailto:christian.marcos@garaget.org] Sent: Monday, November 26, 2007 8:58 PM To: Marco Kaiser Cc: pear-dev@lists.php.net Subject: Re: [PEAR-DEV] Very slow fread() in function parseResponeFile($fp) in RPC.php This require Openads to be installed (I think), but you could try it without, everything on the client-site (www-server) is provided. Phpinfo: http://chrizz.nu/xml_rpc_test/phpinfo.html Test-code with timer: http://chrizz.nu/xml_rpc_test/test-code.php.txt Required PHP-code from Openads; http://chrizz.nu/xml_rpc_test/openads-xmlrpc.inc.php.txt // Christian Marco Kaiser wrote:
    
Hi Christian,
      
There are no errors. I've tried removing the @ also (I run this on a
development server at the moment) and no errors are displayed, there
        
is
nothing in php.err either.
        
can you please provide the smallest amount of code to reproduct it on
your
machine and a phpinfo output? -- Marco
      


« previous php.pear.dev (#48617) next »