#41968 [Opn->Bgs]: PHP CLI slow to exit with CURL + MySQL extensions
| From: | scottmac@php.net | Date: | Thu, 12 Jul 2007 14:01:15 +0000 |
| Subject: | #41968 [Opn->Bgs]: PHP CLI slow to exit with CURL + MySQL extensions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-114975@lists.php.net to get a copy of this message | ||
ID: 41968
Updated by: scottmac@php.net
Reported By: osolo at wndtabs dot com
-Status: Open
+Status: Bogus
Bug Type: cURL related
Operating System: Windows XP SP2
PHP Version: 5.2.3
New Comment:
This is a duplicate of #41350 which is currently being worked on, you
require the MySQL 5.0.45 libmysqldll which is currently not included in
the snapshot.
Previous Comments:
------------------------------------------------------------------------
[2007-07-12 13:59:48] osolo at wndtabs dot com
The snapshot didn't fix the same problem.
------------------------------------------------------------------------
[2007-07-12 10:48:26] tony2001@php.net
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