Bug #81639 [NEW]: GD does not allow to import exported symbols on Windows
| From: | cmb@php.net | Date: | Fri, 19 Nov 2021 15:11:12 +0000 |
| Subject: | Bug #81639 [NEW]: GD does not allow to import exported symbols on Windows | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-237870@lists.php.net to get a copy of this message | ||
From: cmb
Operating system: Windows
PHP version: 7.4Git-2021-11-19 (Git)
Package: GD related
Bug Type: Bug
Bug description:GD does not allow to import exported symbols on Windows
Description:
------------
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]
<https://docs.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-error-lnk2019?view=msvc-170>
[2] <https://github.com/php/php-src/blob/php-7.4.26/ext/gd/gd.c#L1414>
--
Edit bug report at https://bugs.php.net/bug.php?id=81639&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81639&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81639&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81639&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81639&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81639&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81639&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81639&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81639&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81639&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81639&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81639&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81639&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81639&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81639&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81639&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81639&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81639&r=mysqlcfg