Call to undefined function curl_init() php 7.2.34 - php

I know this question has been asked before, but none of the answer given helped me...
The extension line in the php.ini is uncommented extension=php_curl.dll
I recently updated GLPI to the last version (9.5.2, was in 9.3.1 before) so I had to change php version from 7.1.9 to 7.2.34.
It's on a WS2012R2 64bits, Wamp 3.1.0 32bits, so I put php in 32bits too.
I checked dependencies with doing "deplister.exe ext\php_curl.dll" and all is "OK" now (a few dll were missing, I copied them from another php version).
I have tried :
reboot the server (at least once)
restart wamp (at least once)
Do you have any idea on how to solve this ?
I can have a look at any solutions
[EDIT] solution is in comments : this was solved downgrading php from 7.2.34 to 7.2.10

Related

Call to undefined function stats_standard_deviation()

My PHP version is 5.4.16
I found php_stats (and php_http) here:
http://windows.php.net/downloads/pecl/releases/
Got this version: php_stats-1.0.3-5.6-ts-vc11-x86.zip
(Yes I have 32bit)
Copied php_stats.dll to C:\wamp\bin\php\php5.4.16\ext
Add extension=php_stats.dll (and extension=php_http.dll) to php.ini (located in C:\wamp\bin\apache\Apache2.4.4\bin)
exit wamp, start wamp, restart all services
wamp -> php -> php extensions -> php_stats is checked (and php_http)
But I still get the same error (see title). How can I solve this?
Call to undefined function stats_standard_deviation() php pecl stats wamp windows 7
I found another package here:
http://pecl.php.net/package/stats/1.0.3/windows
this one is working

WAMP will not start Mongo driver. Updated: narrowed down the issue

I have followed instructions down to the letter, but WAMP is not loading php_mongo.dll.
I have downloaded the latest version of WAMP and the MongoDB PHP driver, made sure I am using the correct versions and have also tried a few different versions, added lines to the php.ini file, but to no avail.
Currently I have:
Wamp Server version 2.5, just did a clean install.
MongoDB driver version 1.5.4-5.5 (thread safe) vc11 build for x86 (running 32 bit Windows).
Renamed the file 'php_mongo.dll' and put it in the standard extension directory (C:\wamp\bin\php\php5.5.12\ext).
Added the line extension=php_mongo.dll to the php.ini file and checked it stays there after saving and closing the file.
Ensured that it appears in the list of extensions and is ticked on the Wamp control panel.
But I can't get it to show by using phpinfo(), so I assume that means it cannot start. Every tutorial says to 'make sure you're using version x or stable release y'. I have tried about 15 different combinations and this is the closest I have got.
Can anyone help?
UPDATE:
Got rid of WAMP as I wanted finer control. I've got Apache 2.2 and PHP 5.4.12 working great, but Mongo is still not playing ball. I've checked the server logs and it's giving me this line:
PHP Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_mongo.dll' - The specified module could not be found.\r\n in Unknown on line 0
When I used a different version of the driver I got an error saying it wasn't a valid win32 program, but now it's saying that (even though that file DOES exist).

php_curl does not work when I try and install Magento

I have Apache version 2.2.22 and PHP 5.3.13. When I try to install Magento it just keeps telling me that curl must be loaded. I have tried to troubleshoot the problem but nothing has solved it. I've done the following:
uncomment php_curl.dll in php.ini file (both in php/ext and the apache/bin folders)
When that didn't work I downloaded two versions of php_ curl fix files (5.3.13 and 5.4.3) and used each to replace the original php_curl.dll file in php/ext.
With 5.4.3 I got the error message that "curl failed to start because the side-by-side configuration is incorrect". Now the 5.3.13 version is in the folder but I get two error messages "Program can't start because php5.dll is missing from your computer" and "ext/php_curl.dll - the specified module could not be found'.
Could someone give me further advice, because at this point I'm clueless on what to do next? I am using wampserver 2.2 and Windows 7.
It seems that more people are having this problem - php_curl.dll is badly compiled and doesn't work under Win7/8 64-bit versions.
I found this topic in official Wamp Server forums and it looks like people provided some answers there:
Wamp Server 2.2 Windows 7 64-bit and curl not working side-by-side configuration incorrect
Update your PHP version to 7.0 or higher.
They have fix the php-curl in >7.0 version see the artical php Chang log

Apache 2.4.4 issue with PHP 5.5.1

I am having a problem setting up PHP 5.5.1 on Windows 8 Pro under Apache 2.4.4. I have Apache 2.4.4 x86 and I downloaded PHP 5.5.1 x86 VC11 Thread Safe. When I try to load Apache It returns the error:
httpd.exe: Syntax error on line 531 of C:/Apache24/conf/httpd.conf: Cannot load
C:/php/php5apache2_4.dll into server: The specified module could not be found.
I am staring at the file C:\php\php5apache2_4.dll, so I am 100% positive it exists. Now here is the part I don't understand....
When I download PHP 5.4.17 VC9 Thread Safe and unzip, Apache loads and finds the .dll just fine.
Why does PHP 5.4 install perfectly fine, but PHP 5.5 throws the above error. I have tried to install several times and now I am here because I cannot figure it out on my own.
Thanks!
P.S. I originally asked this question on Server Fault, assuming this was a Server Setup related question, but was directed here, even though I've had questions closed over here that were of this nature. Original Server Fault Question: https://serverfault.com/questions/525029/apache-2-4-4-issue-with-php-5-5-1
Any chance you have a x64 version of Apache and a x86 version on PHP ? Or maybe the other way around ?
I think there's some compatibility issue with that dll file.. try some other version of php

program cant start because php5.dll is missing

I installed XAMPP , phpinfo: PHP Version 5.3.5
Downloaded PHPPDT, installed
downloaded webserver debug extension, copied dummy.php
added zend_extension="c:\edward\xampp\php\ext\5_3_x_nts_comp\ZendDebugger.dll"
stop, restart apache, get:
"the program cant start because php5.dll is missing from your computer"
(while php5nts.dll is included)
is installing zend studio ce the alternative or can i make it work with XAMPP? (using Zend Studio CE works)
if your php version is Non-Thread-Safe (nts)
you must use php extension with format example: extension=php_cl_dbg_5_2_nts.dll
else if your php version is Thread-Safe (ts)
you must use php extension with format example: extension=php_cl_dbg_5_2_ts.dll
(notice bolded words)
So if get error like above. Firstly, check your PHP version is nts or ts, if is nts.
Then check in php.ini whether has any line like zend_extension_ts="C:\xammp\php\ext\php_dbg.dll-5.2.x" choose right version of php_dbg.dll-5.2.x from it homepage (google for it).
Change from zend_extension_ts to zend_extension_nts.
Hope this help.
Download php5.dll (http://windows.php.net/download/) and copy it to apache/bin folder. That solved it for me (Win 7 64 bit apache 32 bit)
EDIT:
Start with the non-thread safe version.
For Wamp x86+Phalcon users (with same error):
Take care of download the right version of Phalcon:
Phalcon 1.3.2 - Windows x86 for PHP 5.5.0 (VC11)
I had the same problem I switched from wamp to xampp and yes PHP was working because my path was still pointing to my old installation. I had forgotten to change it to point to my new php installation which version of php didn't match the rest at all.
In case this might help someone, after installing the thread safe version of PHP 5.5.1, everything was working under apache for my dev sites, but I ran into the same "php5.dll is missing" problem installing Composer using the Composer-Setup.exe - or, as I soon discovered, just running something as simple as php -v from the command line. I made a copy of php5ts.dll and named it php5.dll and everything worked. I assume the Composer installer was specifically looking for "php5.dll" and I knew that the thread safe code would be run by the renamed .dll. I also assume something is wrong with my setup to screw up the command line functionality, but with everything working, I have more important issues to deal with than to try and find the problem.
I just now faced this issue while trying to restart XAMPP Apache.
What you can do to solve this is:
download PHP5.dll from http://originaldll.com/file/php5.dll/30704.html
Copy the downloaded php5.dll to C:\xampp\php
Start APACHE and MySql from XAMPP control panel
Hope my solution solves your problem.
Thank You!
I needed to change environment variable PATH and PHPRC. Also open new cmd.
I already had PHP installed and added EasyPHP when the problem came up. After I changed both variables to C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\binaries\php\php_runningversion it worked fine.
When you open phpinfo()
see if the thread safety is enable or not enable
also see the version of php
and see MSVC-- what is the number in place of --
and see the architecture
these all things help u to get the suitable php driver
here a url help u to get a php driver
https://s3.amazonaws.com/drivers.mongodb.org/php/index.html
What you can do to solve this is:
Download PHP5.dll or PHP7.dll from: http://windows.php.net/download/.
Copy the downloaded php5.dll or php7.dll to C:\xampp\php.
Start Apache and MySQL from XAMPP Control Panel.

Categories