#42928 [Opn->Fbk]: PHP crashes silently when CURLOPT_MAXCONNECTS is set

From: Date: Thu, 11 Oct 2007 18:16:40 +0000
Subject: #42928 [Opn->Fbk]: PHP crashes silently when CURLOPT_MAXCONNECTS is set
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118422@lists.php.net to get a copy of this message
ID: 42928 Updated by: iliaa@php.net Reported By: telsbern at uga dot edu -Status: Open +Status: Feedback Bug Type: cURL related Operating System: Windows 2003 server sp2 PHP Version: 5.2.4 New Comment: 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 Works fine for me on Linux, could be an issue with an old libcurl or something win32 specific. A backtrace would be super-useful in this case. Previous Comments: ------------------------------------------------------------------------ [2007-10-11 14:19:31] telsbern at uga dot edu Those options were both already what you suggested. I just verified them. ------------------------------------------------------------------------ [2007-10-11 13:26:54] jani@php.net Try making the errors show up by setting error_reporting = E_ALL and display_errors = On.. ------------------------------------------------------------------------ [2007-10-11 13:07:49] telsbern at uga dot edu 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 this bug report at http://bugs.php.net/?id=42928&edit=1

« previous php.bugs (#118422) next »