#41968 [NEW]: PHP CLI slow to exit with CURL + MySQL extensions

From: Date: Wed, 11 Jul 2007 18:00:22 +0000
Subject: #41968 [NEW]: PHP CLI slow to exit with CURL + MySQL extensions
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-114926@lists.php.net to get a copy of this message
From: osolo at wndtabs dot com Operating system: Windows XP SP2 PHP version: 5.2.3 PHP Bug Type: cURL related Bug description: PHP CLI slow to exit with CURL + MySQL extensions 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 bug report at http://bugs.php.net/?id=41968&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41968&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41968&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41968&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41968&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41968&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41968&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41968&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41968&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41968&r=support Expected behavior: http://bugs.php.net/fix.php?id=41968&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41968&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41968&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41968&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41968&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41968&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41968&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41968&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41968&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41968&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41968&r=mysqlcfg

« previous php.bugs (#114926) next »