php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37434 curl module doesn't work
Submitted: 2006-05-14 10:19 UTC Modified: 2006-05-15 14:46 UTC
From: nastasache_iulian at yahoo dot com Assigned:
Status: Not a bug Package: cURL related
PHP Version: 5.1.4 OS: Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nastasache_iulian at yahoo dot com
New email:
PHP Version: OS:

 

 [2006-05-14 10:19 UTC] nastasache_iulian at yahoo dot com
Description:
------------
PHP curl module doesn't work after upgrading to mysql 5.1.9.
All other php modules working fine.
System: Linux Redhat 9
Tested with: PHP 5.0.4, PHP 5.1.4 and PHP 5.2 -. Same error.

I think it is mysql related, but both curl and mysql working as apllication and I have both installed correctly.
On other systems what I have (Gentoo, RHE), php 5.1.4 and mysql 5.1.9 combination is working corectly.



Reproduce code:
---------------
I think is enough to try:

./configure --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config  --with-curl

Here is my full configure:

./configure --prefix=/usr/local/apache/php --with-config-file-path=/usr/local/apache/conf --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-pgsql --with-mcrypt --with-mhash --with-bz2 --with-cybercash --with-curl --with-db4 --with-dba --with-dom --with-freetype-dir=/usr --with-ftp --with-gd --with-gdbm --with-gettext --with-iconv --with-jpeg-dir=/usr --with-mod_charset --with-openssl --with-png --with-png-dir=/usr --with-pspell --with-regex=system --with-ttf --with-zlib --with-xml --with-xslt-sablot=/usr/local/sablot --enable-bcmath --enable-bcmath=yes --enable-debug=no --enable-ftp --enable-gd-native-ttf --enable-inline-optimization --enable-magic-quotes --enable-mbstring --enable-memory-limit=yes --enable-pic --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-trans-sid --enable-track-vars --enable-yp --enable-wddx --enable-xslt

gmake

gmake install

Expected result:
----------------
correct installation of curl module.

Actual result:
--------------
Error at end of gmake install:

[activating module `php5' in /usr/local/apache/conf/httpd.conf]
Installing PHP CLI binary:        /usr/local/apache/php/bin/
Installing PHP CLI man page:      /usr/local/apache/php/man/man1/
Installing PEAR environment:      /usr/local/apache/php/lib/php/
PHP Fatal error:  Unable to start curl module in Unknown on line 0
gmake[1]: *** [install-pear-installer] Error 254
gmake: *** [install-pear] Error 2

Error in apache log:

PHP Fatal error:  Unable to start curl module in Unknown on line 0

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-05-14 12:41 UTC] tony2001@php.net
Works perfectly fine here.

>PHP Fatal error:  Unable to start curl module in Unknown on line 0
This means that curl_global_init() failed, which in turn means that you have problems with curl itself and the problem has nothing to do with PHP.
 [2006-05-15 14:05 UTC] nastasache_iulian at yahoo dot com
if curl_global_init() failed, why php compilation it is not stopped durring of curl interface test, and, instead, return an error only at installation of pear? 

I have problems not at all  with running curl by command line. Where curl_global_init() failed? 

So, if PHP said:

CURL support 	enabled
CURL Information 	libcurl/7.15.3 OpenSSL/0.9.7f zlib/1.1.4

and this is not true, then it is a big bogus.
 [2006-05-15 14:46 UTC] nastasache_iulian at yahoo dot com
Small, almost sure wrong, but usable workaround for me if comment /ext/curl/interface.c at line 519 and recompile php:

    if (curl_global_init(CURL_GLOBAL_SSL) != CURLE_OK) {
        /* return FAILURE; */
    }

With that, make install error is going on and curl module i see working fine for my needs but maybe I am wrong with fixing problem in this way.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 14:01:28 2024 UTC