ID:               42928
 Comment by:       webmaster at intobikes dot co dot uk
 Reported By:      telsbern at uga dot edu
 Status:           No Feedback
 Bug Type:         cURL related
 Operating System: Windows 2003 server sp2
 PHP Version:      5.2.4
 New Comment:

I have exactly the same problem on a server running Centos 5 with
WHM/cPanel-11.  It's a brand new machine and is being readied for
service with the latest stable versions of everything it needs. PHP is
version 5.2.4

All error warnings are on, even notice and strict ones. CURL works fine
with the "curl_setopt($ch, CURLOPT_MAXCONNECTS, someIntegerHere);" line
removed, but otherwise fails silently. And you know how long they take
to find!


Previous Comments:
------------------------------------------------------------------------

[2007-10-19 01:00:02] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2007-10-11 18:16:40] [EMAIL PROTECTED]

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.

------------------------------------------------------------------------

[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] [EMAIL PROTECTED]

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

Reply via email to