php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6656 Child segfault when executing CURL functions
Submitted: 2000-09-10 22:15 UTC Modified: 2000-10-28 23:19 UTC
From: rckstr42 at hotmail dot com Assigned:
Status: Closed Package: cURL related
PHP Version: 4.0.2 OS: RedHat Linux 6.2, Kernel 2.2.16
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
37 + 23 = ?
Subscribe to this entry?

 
 [2000-09-10 22:15 UTC] rckstr42 at hotmail dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-25 07:05 UTC] sterling@php.net
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?
 [2000-09-25 07:07 UTC] sterling@php.net
Sorry, this should have been feedback...
 [2000-10-28 23:19 UTC] sniper@php.net
No feedback.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 20:01:28 2024 UTC