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

From: Date: Thu, 11 Oct 2007 14:19:32 +0000
Subject: #42928 [Fbk->Opn]: PHP crashes silently when CURLOPT_MAXCONNECTS is set
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-118408@lists.php.net to get a copy of this message
ID: 42928 User updated by: telsbern at uga dot edu Reported By: telsbern at uga dot edu -Status: Feedback +Status: Open Bug Type: cURL related Operating System: Windows 2003 server sp2 PHP Version: 5.2.4 New Comment: Those options were both already what you suggested. I just verified them. Previous Comments: ------------------------------------------------------------------------ [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 (#118408) next »