cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

curl / php segfaulting

From: Christian Lox <lox_at_netzwerkplanet.de>
Date: Fri, 01 Mar 2002 16:59:43 +0100

Hi everyone.

We currently see one problem with curl and PHP.
On our test server is running fine, on another machine Curl/PHP is
segfaulting Apache.
curl has been built into Apache/ PHP on both machines.

The machine causing trouble is:
curl 7.9.3 (i686-pc-linux-gnu) libcurl 7.9.3 (OpenSSL 0.9.5)
THe working machine:
curl 7.9.2 (i686-pc-linux-gnu) libcurl 7.9.2 (OpenSSL 0.9.6a)

The working machine is running a 2.4 Linus Kernel, the non-working a
2.2.19 kernel.
Both PHP 4.1.1

I tried the debug script from PHP Developers Cookbook:
<?php
include('Curl.php');
$conn = new Net_Curl('http://www.netzwerkplanet.de/index.html');
if (Net_Curl::isError($conn)) {
   die(sprintf('Error [%d]: %s', $conn->getCode(),
$conn->getMessage()));
}

$conn->verbose = 1;
$conn->progress = 1;
$conn->mute = 0;

$data = $conn->execute();
if (Net_Curl::isError($data)) {
   die(sprintf('Error [%d]: %s', $data->getCode(),
$data->getMessage()));
}

print "Ergebisn:\n<br>\n";
print $data;
?>

Any hint appreciated!

Thanks in advance,
Christian
P.S. http://bugs.php.net/bug.php?id=15307 is reporting a
similar/same(?) problem.

-- 
we reject: kings, presidents, religions
we accept: working code
Received on 2002-03-01