ID: 35126 Updated by: [EMAIL PROTECTED] Reported By: mike at phpeeb dot com -Status: Open +Status: Bogus Bug Type: cURL related Operating System: Unix -PHP Version: 4.4.1 +PHP Version: 4.4.0 New Comment:
You can read, can't you? a) Your example script is useless. b) Used PHP version is too old. c) PHP 5.1 + Curl 7.15.0 works just fine for me. In future, ask your administrator to file bug reports. Previous Comments: ------------------------------------------------------------------------ [2005-11-06 18:10:33] mike at phpeeb dot com 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. ------------------------------------------------------------------------ [2005-11-06 17:46:26] [EMAIL PROTECTED] 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