Bug #76649 [Opn->Fbk]: cURL module does not get loaded
| From: | cmb@php.net | Date: | Sat, 21 Jul 2018 12:59:02 +0000 |
| Subject: | Bug #76649 [Opn->Fbk]: cURL module does not get loaded | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-216379@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76649&edit=1
ID: 76649
Updated by: cmb@php.net
Reported by: laucomm at gmail dot com
Summary: cURL module does not get loaded
-Status: Open
+Status: Feedback
Type: Bug
Package: cURL related
Operating System: Windows
PHP Version: 7.2.8
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Are you absolutely sure that both APIs use the same ini settings?
Previous Comments:
------------------------------------------------------------------------
[2018-07-20 17:16:12] laucomm at gmail dot com
As implicitly suggested, here the version and modules output:
PS C:\Program Files\php> .\php.exe -v
PHP 7.2.8 (cli) (built: Jul 18 2018 10:03:03) ( ZTS MSVC15 (Visual C++ 2017) x64 )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
PS C:\Program Files\php> .\php.exe -m
[PHP Modules]
bcmath
calendar
Core
ctype
curl <--
date
dom
filter
gd
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcre
PDO
Phar
readline
Reflection
session
SimpleXML
soap
SPL
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
zip
zlib
[Zend Modules]
PS C:\Program Files\php>
It can be seen, that curl is listed, bu it is not listed in the phpinfo() output and no cURL
functions are available.
------------------------------------------------------------------------
[2018-07-20 17:10:18] laucomm at gmail dot com
I think it is highly unlikely that this issue is connected to the compilation source of Apache 2.4.
It is PHP that is loading it's extensions, not Apache. I just mentioned the Apache version and
source to describe the environment (Windows users usually do not compile there own binaries).
I believe that the officially compiled PHP 7.2.8 binaries for Windows
(https://windows.php.net/downloads/releases/php-7.2.8-Win32-VC15-x64.zip) are containing a
non-working (non-loading) version of cURL.
------------------------------------------------------------------------
[2018-07-20 14:37:26] spam2 at rhsoft dot net
this is the UPSTREAM bugtracker - you are simply wrong here talking about precompiled apache lounge
binaries
[root@buildserver:~]$ php -v
PHP 7.2.8-thelounge-broadwell (cli) (built: Jul 18 2018 11:42:42) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
[root@buildserver:~]$ php -m
[PHP Modules]
apcu
calendar
Core
ctype
** curl **
date
dom
exif
fileinfo
filter
gd
geoip
hash
iconv
imagick
imap
intl
json
libxml
mailparse
mbstring
mysqli
mysqlnd
openssl
pcre
PDO
pdo_mysql
Phar
Reflection
session
SimpleXML
soap
SPL
standard
tidy
xml
xmlwriter
zip
zlib
------------------------------------------------------------------------
[2018-07-20 14:31:15] laucomm at gmail dot com
Description:
------------
Using the current Apache Lounge release (httpd-2.4.34-win64-VC15.zip) and thread safe PHP version
(php-7.2.8-Win32-VC15-x64.zip), the cURL extension does not get loaded.
I have not tested the behavior with other PHP 7.2 versions.
Test script:
---------------
php.ini:
extension=curl
Expected result:
----------------
All cURL functions should be defined and the module should be loaded if activated in the php.ini
file.
Actual result:
--------------
Error message:
PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in FILE
The phpinfo() output does not display any cURL settings.
In comparison, the mbstring or gd extensions do work fine and are displayed in the phpinfo() output.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76649&edit=1