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:             Feedback
+Status:             Closed
 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:

It was already fixed in some of the 5.3.5 releases and reintroduce in
5.3.6. Also 

the bug was not in PHP but libcurl (fixed there too).


Previous Comments:
------------------------------------------------------------------------
[2011-05-20 01:10:25] tanguy dot pruvot at gmail dot com

Yes, PEAR is now usable with this version. 



Thanks, finally.. almost 2 years since first bug report...

------------------------------------------------------------------------
[2011-05-20 00:49:15] paj...@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.pru...@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] paj...@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.

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


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