Edit report at http://bugs.php.net/bug.php?id=53578&edit=1
ID: 53578
User updated by: tanguy dot pruvot at gmail dot com
Reported by: tanguy dot pruvot at gmail dot com
Summary: php_curl init time (3 big seconds)
Status: Open
Type: Bug
Package: cURL related
Operating System: Win7 x86
PHP Version: 5.3.4 (Since 5.2.14/5.3)
Block user comment: N
Private report: N
New Comment:
I'm using the 5.3.4-VC6-TS version (as Apache 2.2 module)
Previous Comments:
------------------------------------------------------------------------
[2010-12-20 02:06:17] tanguy dot pruvot at gmail dot com
Please comment this line to fix the problem :
php-5.3.4\ext\openssl\openssl.c
PHP_FUNCTION(openssl_random_pseudo_bytes) line
4898 :
#ifdef WINDOWS
RAND_screen();
#endif
------------------------------------------------------------------------
[2010-12-20 01:31:33] [email protected]
This has been fixed in 5.3.4 (I patched curl). Which versions and builds
do you use exactly?
------------------------------------------------------------------------
[2010-12-20 01:03:56] tanguy dot pruvot at gmail dot com
>From OpenSSL 0.9.8q Sources :
The RAND_screen() function is available for the convenience of Windows
programmers. It adds the current contents of the screen to the PRNG.
For applications that can catch Windows events, seeding the PRNG by
calling RAND_event() is a significantly better source of
randomness. It should be noted that both methods cannot be used on
servers that run without user interaction.
------------------------------------------------------------------------
[2010-12-20 00:58:33] tanguy dot pruvot at gmail dot com
The last known good version was 5.2.13 (which is faster than 3 seconds
but adds a
slow delay)
------------------------------------------------------------------------
[2010-12-20 00:53:52] tanguy dot pruvot at gmail dot com
Description:
------------
I reopen this issue because all others (since 2 years) have been closed
without
resolution...
"php -m" with php_curl : 3 seconds on a SSD disk
"php -m" without curl : instant output
Please read the previous answers, seems related to libeay32 RAND
function ...
http://bugs.php.net/bug.php?id=50410 #50410
Test script:
---------------
php -m
Expected result:
----------------
0 seconds
Actual result:
--------------
3 seconds
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53578&edit=1