#42928 [NoF->Fbk]: PHP crashes silently when CURLOPT_MAXCONNECTS is set
| From: | pajoye@php.net | Date: | Thu, 29 Jan 2009 22:35:11 +0000 |
| Subject: | #42928 [NoF->Fbk]: PHP crashes silently when CURLOPT_MAXCONNECTS is set | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-133302@lists.php.net to get a copy of this message | ||
ID: 42928
Updated by: pajoye@php.net
Reported By: telsbern at uga dot edu
-Status: No Feedback
+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.3-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
Previous Comments:
------------------------------------------------------------------------
[2009-01-29 22:21:35] webmaster at tubo-world dot de
This bug is still there in PHP 5.2.6 on Windows XP.
Calling
curl_setopt($this->ch, CURLOPT_MAXCONNECTS, 10);
will crash PHP silently. So no errors are returned which makes it very
hard to indentify the bug.
There is no problem with this on a Linux machine.
------------------------------------------------------------------------
[2008-08-24 15:08:40] pttmail at gmail dot com
$this->curl = curl_init();
curl_setopt($this->curl, CURLOPT_HEADER, $header);
curl_setopt($this->curl, CURLOPT_VERBOSE, 0);
curl_setopt($this->curl, CURLOPT_HTTPGET, 1);
curl_setopt($this->curl, CURLOPT_RETURNTRANSFER,0);
curl_setopt($this->curl, CURLOPT_VERBOSE,0);
curl_setopt($this->curl, CURLOPT_CLOSEPOLICY,
CURLCLOSEPOLICY_OLDEST);
curl_setopt($this->curl, CURLOPT_CONNECTTIMEOUT, 30);
curl_setopt($this->curl, CURLOPT_MAXCONNECTS, 10);
//curl_setopt($this->curl, CURLOPT_COOKIE, $this->session);
curl_setopt($this->curl, CURLOPT_URL, $this->url);
------------------------------------------------------------------------
[2007-10-28 14:00:01] webmaster at intobikes dot co dot uk
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!
------------------------------------------------------------------------
[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] iliaa@php.net
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.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/42928
--
Edit this bug report at http://bugs.php.net/?id=42928&edit=1