Bug #50410 [Com]: curl extension slows down PHP
| From: | tanguy dot pruvot at gmail dot com | Date: | Thu, 19 May 2011 23:10:25 +0000 |
| Subject: | Bug #50410 [Com]: curl extension slows down PHP | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-160850@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=50410&edit=1
ID: 50410
Comment by: tanguy dot pruvot at gmail dot com
Reported by: procyonar at gmail dot com
Summary: curl extension slows down PHP
Status: Feedback
Type: Bug
Package: cURL related
Operating System: win32 only - Windows 7
PHP Version: *
Assigned To: pajoye
Block user comment: N
Private report: N
New Comment:
Yes, PEAR is now usable with this version.
Thanks, finally.. almost 2 years since first bug report...
Previous Comments:
------------------------------------------------------------------------
[2011-05-20 00:49:15] pajoye@php.net
Simply try a snapshot, I double check and no call are done to
Rand_Screen &co (so
it is in libcurl latest release).
------------------------------------------------------------------------
[2011-05-20 00:33:45] tanguy dot pruvot at gmail dot com
Thanks, will check
Here is my last way to fix it (if openssl is already enabled in php)
PHP 5.3.6 VC9 x86 module without SSL Library Init
-------------------------------------------------
tanguy.pruvot@gmail.com - 06 May 2011
The curl module slow down PHP init on Windows since PHP 5.2
The docs might be a bit sparse in this ares, yes. But the SSL bit should
be set
unless you have initialized the OpenSSL library already in some other
way.
And in fact the openssl module already do library init, so if loaded,
this patch
should not impact security
PHP_MINIT_FUNCTION(openssl)
...
SSL_library_init();
It is possible to fix that in extension code, in interface.c :
by replacing CURL_GLOBAL_SSL by CURL_GLOBAL_WIN32...
if (curl_global_init(CURL_GLOBAL_WIN32) != CURLE_OK) {
return FAILURE;
}
Related discussion :
http://http://bugs.php.net/bug.php?id=53578
http://tanguy.tk/?q=content/php-535-correctif-lenteur-au-chargement-de-phpcurl
(french)
http://osdir.com/ml/web.curl.general/2004-05/msg00068.html
http://curl.haxx.se/mail/lib-2004-06/0133.html
------------------------------------------------------------------------
[2011-05-20 00:05:09] pajoye@php.net
Please try using this snapshot:
http://snaps.php.net/php5.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2011-05-20 00:01:09] brian at access9 dot net
Win7, x64, php 5.3.6. The php cli is noticeably slower with the curl
extension enabled. I can also confirm that tanguy's libeay32.dll fixes
the issue.
------------------------------------------------------------------------
[2011-04-11 11:28:41] threedigitnumber at gmail dot com
My tests indicate that something is still going on with 5.3.6: tanguy's
ssleay fixes the issue.
------------------------------------------------------------------------
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