Things have changed in PHP7.2
Extensions in php.ini
as
extension=php_com_dotnet.dll
It was a used format up to PHP7.1, but from PHP7.2 all extensions now use a format like these:
extension=com_dotnet
Without the prefix php_
and without the extension .dll
, of course in the folder ./ext
should still be keep the names with the formats php_<extensão>.dll
or on linux <extensão>.so
, but in php.ini (from 7.2 onwards) this is already implicit, ie only the name will already recognize.
Just like in other extensions it must be something like:
extension=mysqli
Instead of:
extension=php_mysqli.dll
And instead of (on Linux and Mac)
extension=mysqli.so
This was probably done to make php.ini more "portable", as described in php.ini of PHP7.2 onwards:
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
; extension=modulename
;
; For example:
;
; extension=mysqli
;
This PHP7.2 format is used on both Windows and Linux and Mac
Even I always guide in all my answers about the differences of Linux (and Mac), Windows and PHP7.2, for example:
already put in php.ini too?
extension=php_com_dotnet.dll
– Don't Panic
I put yes...
– Lucas Souza
Restarted the server? The
php.ini
that you changed is the same that appears inLoaded Configuration File
when using<?php phpinfo();
?– Valdeir Psr
I restarted yes... It is this php.ini yes
– Lucas Souza