|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #81639 GD does not allow to import exported symbols on Windows
Submitted: 2021-11-19 15:11 UTC Modified: 2021-11-19 16:00 UTC
From: Assigned: cmb (profile)
Status: Wont fix Package: GD related
PHP Version: 7.4Git-2021-11-19 (Git) OS: Windows
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2021-11-19 15:11 UTC]
External extension (e.g. PECL/ps) may want to link to GD, but that
is not possible on Windows, because the PHP_GD_API symbols are not
declared as __declspec(import) when building these extensions,
resulting in LNK2019 errors[1].

This is particularly surprising, since there is even a respective
comment in the GD sources, claiming that phpi_get_le_gd() is
needed for cpdf[2].

[1] <>
[2] <>


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-11-19 15:11 UTC]
-Assigned To: +Assigned To: cmb
 [2021-11-19 16:00 UTC]
-Status: Assigned +Status: Wont fix
 [2021-11-19 16:00 UTC]
Argh!  That has already been done for PHP-8.0[1], and given the
unfortunate naming of php_gd2.dll we can't use ADD_EXTENSION_DEP()
anyway for PHP 7, so I'm closing this as WONTFIX.

[1] <>
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Sep 30 17:01:24 2023 UTC