History log of /PHP-8.3/ext/gd/tests/gh10344.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# 4a487294 24-Jan-2024 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Fix GH-10344: imagettfbbox(): Could not find/open font UNC path

libgd uses an incorrect absolute path check in gdft.c.
It checks if either the path starts with a '/' (only valid on Posix

Fix GH-10344: imagettfbbox(): Could not find/open font UNC path

libgd uses an incorrect absolute path check in gdft.c.
It checks if either the path starts with a '/' (only valid on Posix
btw), or whether it contains something of the form C:\ or C:/.
However, this overlooks the possibility of using UNC paths on Windows.
As we already do PHP-specific stuff with VCWD_ macros, use
IS_ABSOLUTE_PATH to check for an absolute path which will take into
account UNC paths as well.

Closes GH-13241.

show more ...