ID:               41968
 User updated by:  osolo at wndtabs dot com
 Reported By:      osolo at wndtabs dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         cURL related
 Operating System: Windows XP SP2
 PHP Version:      5.2.3
 New Comment:

The snapshot didn't fix the same problem.


Previous Comments:
------------------------------------------------------------------------

[2007-07-12 10:48:26] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows (zip):
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

For Windows (installer):

  http://snaps.php.net/win32/php5.2-win32-installer-latest.msi



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

[2007-07-11 18:00:22] osolo at wndtabs dot com

Description:
------------
OK, this is a strange one.  If you have CURL and either the php_mysql
or  php_pdo_mysql extensions active, then PHP (command line) will hang
for about 5 seconds before actually exiting the script.

This is especially problematic in a CGI scenario, because the
connection to the browser isn't closed during this delay and it looks
like the request isn't complete.

The problem goes away if I comment out the Mysql extensions in my ini
file.


Reproduce code:
---------------
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://www.php.net');
curl_exec($ch);
curl_close($ch);
echo 'done';
?>


Expected result:
----------------
Running this from the command line, you would expect PHP to exit right
after the word 'done' is printed.


Actual result:
--------------
There is about a 5 second delay between the time the word 'done' is
printed and PHP returning control to the command line.


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


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

Reply via email to