php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35126 v 4.4.0-4 cURL Problem
Submitted: 2005-11-06 15:59 UTC Modified: 2005-11-06 23:12 UTC
From: mike at phpeeb dot com Assigned:
Status: Not a bug Package: cURL related
PHP Version: 4.4.0 OS: Unix
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mike at phpeeb dot com
New email:
PHP Version: OS:

 

 [2005-11-06 15:59 UTC] 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?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-06 17:46 UTC] 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 18:10 UTC] 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 23:12 UTC] sniper@php.net
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.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 12:01:29 2025 UTC