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

curl-and-php

PHP with cURL support as a DSO on a RaQ

From: Michelle A. Hoyle <michelle_at_transcena.com>
Date: Thu, 16 Aug 2001 00:56:04 +0100

Environment:
OS: RedHat Linux 6.x (custom version)
Machine: Sun Cobalt RaQ 4R
PHP version: 4.0.6 with Zend Optimizer
cURL version: 7.8
Apache version: 1.3.12

Problem Summary:
curllib compiles into PHP just fine as a DSO for Apache. When Apache
uses the DSO, it dumps core and dies in a big way without any
discernible error in the error log.

Detailed Explanation:
I've tried compiling cURL support into PHP 3 or 4 times now and I
just can't get it to go. cURL compiles fine. PHP compiles fine.
PHP with cURL compiles fine, even as a DSO. Install the DSO and
<Boom!> Recompile PHP without cURL as a DSO and it works fine.

Here's the configuration of PHP
--prefix=/usr --with-apxs=/usr/sbin/apxs --with-gd
--with-gettext=/usr --enable-safe-mode
--with-config-file-path=/etc/httpd --with-exec-dir=/usr/bin
--with-zlib --enable-magic-quotes --with-regex=system
--with-ttf=/usr/lib/libttf.so --enable-track-vars --enable-xml
--disable-debug --with-interbase=shared --with-pgsql=shared
--with-ldap --with-imap --enable-trans-sid --with-mysql --with-curl

Contents of /etc/ld.so.conf
/lib
/usr/lib
/usr/i486-linux-libc5/lib
/usr/X11R6/lib
/home/chiliasp/lib
/usr/lib/apache
/usr/lib/mysql
/usr/local/lib

Curl SO is in /usr/local/lib and PHP, when compiling, doesn't
complain that it can't find it.

I'm running out of bright ideas. Has anybody gotten this to work or
can suggest something else for me to try?

Thanks,

Michelle
Received on 2001-08-16