#35126 [Fbk->Opn]: v 4.4.0-4 cURL Problem
| From: | mike at phpeeb dot com | Date: | Sun, 06 Nov 2005 17:10:34 +0000 |
| Subject: | #35126 [Fbk->Opn]: v 4.4.0-4 cURL Problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-87696@lists.php.net to get a copy of this message | ||
ID: 35126
User updated by: mike at phpeeb dot com
Reported By: mike at phpeeb dot com
-Status: Feedback
+Status: Open
Bug Type: cURL related
Operating System: Unix
PHP Version: 4.4.1
New Comment:
What more information do you need?
This version of PHP and cURL appear to be incompatible. I was told by
my server admin that they use Debian package.
Executing cURL in this version seems to crash PHP, as any instruction
written after curl_exec() does not get followed, even die()
instructions.
Previous Comments:
------------------------------------------------------------------------
[2005-11-06 17:46:26] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2005-11-06 15:59:41] mike at phpeeb dot com
Description:
------------
cURL no longer executes, script just dies. Happened with new
installation of 4.4.0-4 my webhost installed. I cannot upgrade PHP
myself, hence my choosing 4.4.1
PHP Version: 4.4.0-4
cURL Version: 7.15.0
Reproduce code:
---------------
$ch = curl_init($host_string);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_URL, $host_string);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml);
curl_setopt($ch, CURLOPT_SSLCERT, $cert);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
curl_setopt($ch, CURLOPT_REFERER, $curl_ref);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($ch);
curl_close($ch);
Expected result:
----------------
var $result should either return Array of data or error.
Actual result:
--------------
$result returns nothing, script dies after curl_exec(). Even die() or
echo commands written beneath curl_exec() do not show up. Possible PHP
crash?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35126&edit=1