Bug #81205 [Opn->Csd]: GD extension does not load

From: Date: Wed, 30 Jun 2021 22:43:22 +0000
Subject: Bug #81205 [Opn->Csd]: GD extension does not load
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234712@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81205&edit=1

 ID:                 81205
 Updated by:         cmb@php.net
 Reported by:        buschmann at nidsa dot net
 Summary:            GD extension does not load
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            GD related
 Operating System:   Windows Server 2019 64bit
 PHP Version:        8.1.0alpha2
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

The 8.1 and master series have been updated to use libavif-0.9.0-1
which has static libraries, so PHP 8.1.0alpha3 will not require
avif.dll anymore.


Previous Comments:
------------------------------------------------------------------------
[2021-06-29 15:27:46] cmb@php.net

> To avoid this configuration change a final solution should
> detect the avif.dll automatically in the php distribution
> directory (or static linking).

The latter is fine, but the former would be pretty unusual, and
after all, there are several other DLLs in that folder which would
require the same treatment (e.g. sqlite3.dll, libssl-1_1-x64.dll)
(which is documented for the respective extensions, e.g.
openssl[1]).  Actually, I'm surprised that you haven't faced other
issues; either you don't use these extensions, or they used DLLs
from another folder.

[1] <https://www.php.net/manual/en/openssl.installation.php>

------------------------------------------------------------------------
[2021-06-29 13:37:43] buschmann at nidsa dot net

I added the php distribution directory (N:\Apache\php8) to the systemwide PATH variable and
restarted Apache service.

GD now loads without problems in 8.1.alpha2 (seen in info.php)

Thanks for showing this solution.

To avoid this configuration change a final solution should detect the avif.dll automatically in the
php distribution directory (or static linking).

------------------------------------------------------------------------
[2021-06-29 09:11:51] cmb@php.net

> There has been the change between 8.1 alpha1 and alpha2

8.1.0alpha2 introduced AVIF support, and currently avif.dll is
built as dynamic library.  There is a PR to build it
statically[1], and this is likely to be merged, and then there
will be no more avif.dll.  But for now, you need to put avif.dll
in the PATH.

[1] <https://github.com/winlibs/libavif/pull/2>

------------------------------------------------------------------------
[2021-06-28 19:51:54] buschmann at nidsa dot net

avif.dll is in the php8 directory (where php.exe exists)
It is the unmodified extraction from the zip from the php website.

This php extraction directory is not declared in the path variable (like many years now)
There has been the change between 8.1 alpha1 and alpha2

------------------------------------------------------------------------
[2021-06-28 14:47:19] cmb@php.net

Make sure that avif.dll is in the PATH.

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=81205


--
Edit this bug report at https://bugs.php.net/bug.php?id=81205&edit=1


Thread (7 messages)

« previous php.bugs (#234712) next »