PHP 4.0 Bug #6656 Updated: Child segfault when executing CURL functions
| From: | Bug Database | Date: | Mon, 25 Sep 2000 11:05:56 +0000 |
| Subject: | PHP 4.0 Bug #6656 Updated: Child segfault when executing CURL functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-33660@lists.php.net to get a copy of this message | ||
ID: 6656
Updated by: sterling
Reported By: rckstr42@hotmail.com
Status: Closed
Bug Type: cURL related
Assigned To:
Comments:
I forwarded your message to the author of curl, he had this to say:
"This sounds very much like it was built against an newer OpenSSL lib
than it is run with. The RAND_status function is a pretty newly added
function (OpenSSL 0.9.5 I believe).
Anyway, it is obviously a symbol problem and this *should* occur with the
normal 'curl' tool as well...
Get him to verify that he's using the same openssl lib for php that the
configure script in curl detects. RAND_status is known not to be present in
every openssl version and therefor the curl configure script checks for it
and the source uses it accordingly."
So is it so?
Previous Comments:
---------------------------------------------------------------------------
[2000-09-10 22:15:13] rckstr42@hotmail.com
Originally linked with cURL SSL 7.1
if it is linked with 7.2.1 apache crashes on startup, with:
Cannot load /etc/httpd/modules/libphp4.so into server: /usr/lib/libcurl.so.0: undefined symbol:
RAND_status
I have a simple script like this:
<html>
<body>
starting curl...<br>
<?php
$ch=curl_init ("http://192.168.0.42/");
$fp=fopen ("/tmp/curl_test.txt","w");
curl_setopt($ch, CURLOPT_INFILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_exec($ch);
curl_close($ch);
fclose($fp);
?>
curl completed<br>
</body>
</html>
I have PHP4 compiled with the following options:
--with-apxs=/usr/bin/apxs --with-mysql=/usr/local/mysql --with-curl=/usr --enable-sysvsem
--enable-sysvshm --enable-versioning
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6656