#42928 [NEW]: PHP crashes silently when CURLOPT_MAXCONNECTS is set

From: Date: Thu, 11 Oct 2007 13:07:49 +0000
Subject: #42928 [NEW]: PHP crashes silently when CURLOPT_MAXCONNECTS is set
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118388@lists.php.net to get a copy of this message
From: telsbern at uga dot edu Operating system: Windows 2003 server sp2 PHP version: 5.2.4 PHP Bug Type: Reproducible crash Bug description: PHP crashes silently when CURLOPT_MAXCONNECTS is set Description: ------------ On 2 different windows servers I have, php just crashes silently if I try to set any value at all for CURLOPT_MAXCONNECTS. If I have the line: curl_setopt($ch, CURLOPT_MAXCONNECTS, someIntegerHere); PHP just dies when it gets to that line. If I comment it out, the script works fine. It looks like php_curl.dll hasn't been changed in a while so I'm stumped. It works just fine on my redhat box. Reproduce code: --------------- <?php print("Hi!\n"); $ch = curl_init("http://www.example.com/"); curl_setopt($ch, CURLOPT_VERBOSE, true); curl_setopt($ch, CURLOPT_MAXCONNECTS, 5); print("Running curl_exec()...\n"); curl_exec($ch); print("Done!\n"); $daErr = curl_error($ch); print_r($daErr); curl_close($ch); ?> Expected result: ---------------- Hi! Running curl_exec()... <HTML> <HEAD> <TITLE>Example Web Page</TITLE> </HEAD> <body> <p>You have reached this web page by typing &quot;example.com&quot;, &quot;example.net&quot;, or &quot;example.org&quot; into your web browser.</p> <p>These domain names are reserved for use in documentation and are not available for registration. See <a href="http://www.rfc-editor.org/rfc/rfc2606.txt">RFC 2606</a>, Section 3.</p> </BODY> </HTML> Done! Actual result: -------------- Hi! -- Edit bug report at http://bugs.php.net/?id=42928&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42928&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42928&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42928&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42928&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42928&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42928&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42928&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42928&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42928&r=support Expected behavior: http://bugs.php.net/fix.php?id=42928&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42928&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42928&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42928&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42928&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42928&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42928&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42928&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42928&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42928&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42928&r=mysqlcfg

« previous php.bugs (#118388) next »