Edit report at http://bugs.php.net/bug.php?id=50410&edit=1

 ID:               50410
 Updated by:       paj...@php.net
 Reported by:      procyonar at gmail dot com
 Summary:          curl extension slows down PHP
-Status:           No Feedback
+Status:           Feedback
 Type:             Bug
 Package:          cURL related
 Operating System: win32 only - Windows 7
 PHP Version:      5.2.11

 New Comment:

can you try with 5.2.13 pls?



But I very much doubt that the 5 seconds are due to the problem
described in this report.


Previous Comments:
------------------------------------------------------------------------
[2010-05-25 00:56:48] andrew at mammoth dot com dot au

This is STILL a problem.



Windows 7 64bit here, PHP 5.2.11



php -v

<takes 5 seconds> for the script to terminate



Five seconds for *any* CLI operation in PHP under Windows with an out of
the box 

PHP install.



Surely this is an important enough bug to warrant someone checking into
this?

------------------------------------------------------------------------
[2010-05-18 23:39:13] mailnew2ster at mail dot ru

The same thing happens on my system.

Windows 7 x86, PHP 5.3 (5.3.2) VC9 x86 Thread Safe (2010-Mar-04
20:11:10)



After some debugging of php I found out that the RAND_screen() function
in 

libeay32.dll is responsible for slowing down the execution.

I've patched the function out, and it really became fast again. I don't
use SSL 

stuff so I don't care how this affects security.



The patch is 0xE8 -> 0xC3 on offset 0x0003EE10, you can use it as a
temporary 

solution (patch it with any hex editor).



Cheers!

------------------------------------------------------------------------
[2010-02-18 10:31:00] raul dot valge at gmail dot com

I am using PHP as embedded in another Win application.

I can confirm that the issue occurs both from cli and embed sapi.



I have tried different versions and also found that the issue started 

with 5.2.11 and is present up to 5.3.1

------------------------------------------------------------------------
[2010-01-15 01:00:01] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------
[2010-01-13 02:00:23] wzed dot php at gmail dot com

I'm not the original reporter, but I cannot confirm that the bug affects
requests when running PHP as an Apache 2.2 module, only that Apache
start/restart is noticeably slower with curl enabled.



Is there more initialization code now than there was in 5.2.10? I ran a
diff of /ext/curl/* between 5.2.10 and 5.2.12 and didn't see anything
significant.



I just tested PHP 5.3.1 and sadly the bug exists there too. :(



(I'm calling it a bug because the cause of the delay is still unknown)

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=50410


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=50410&edit=1

Reply via email to