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

From: Date: Tue, 29 Jun 2021 09:11:51 +0000
Subject: Bug #81205 [Opn]: GD extension does not load
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-234682@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
 Type:               Bug
 Package:            GD related
 Operating System:   Windows Server 2019 64bit
 PHP Version:        8.1.0alpha2
 Block user comment: N
 Private report:     N

 New Comment:

> 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>


Previous Comments:
------------------------------------------------------------------------
[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.

------------------------------------------------------------------------
[2021-06-28 14:44:47] buschmann at nidsa dot net

Description:
------------
When using our longtime php.ini file (unchanged) for 8.1alpha2 testing, The GD module fails to load
with 2 identical error messages in the log file:

[28-Jun-2021 14:25:14 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'gd'
(tried: N:\Apache\php8\ext\gd (Das angegebene Modul wurde nicht gefunden),
N:\Apache\php8\ext\php_gd.dll (Das angegebene Modul wurde nicht gefunden)) in Unknown on line 0
[28-Jun-2021 14:25:14 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'gd'
(tried: N:\Apache\php8\ext\gd (Das angegebene Modul wurde nicht gefunden),
N:\Apache\php8\ext\php_gd.dll (Das angegebene Modul wurde nicht gefunden)) in Unknown on line 0

This means in english, that the specified module could not be found.

A check in the ext directory shows the file php_gd.dll
(Standard distribution thread safe 64bit for Windows from php website)

This worked well in 8.1.alpha1 and 8.0 all versions.

In the working cases GD section is shown in info.php

Test script:
---------------
below part of the running php.ini
...
; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.
;
;extension=bz2
;extension=curl
;extension=fileinfo
extension=gd
;extension=gettext
;extension=gmp
;extension=intl
;extension=imap
;extension=interbase
;extension=ldap
extension=mbstring
extension=exif      
							; Must be after mbstring as it depends on it
;							; HB disabled mysql to test MySql_Functions wrapper tool
;extension=mysql
;extension=mysqli
;extension=oci8      ; Use with Oracle 10gR2 Instant Client
;extension=oci8_11g  ; Use with Oracle 11gR2 Instant Client
;extension=openssl
;extension=pdo_firebird
;extension=pdo_mysql
;extension=pdo_oci
;extension=pdo_odbc
;extension=pdo_pgsql
;extension=pdo_sqlite
extension=pgsql
;extension=pspell
;extension=shmop

...



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



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


Thread (7 messages)

« previous php.bugs (#234682) next »