Drop NetWare support from bundled libgd (GH-17596)

This has been removed from upstream years ago[1], and PHP generally
dropped NetWare support even earlier.

[1] <e6bb110663>
[2] <https://externals.io/message/96838>
This commit is contained in:
Christoph M. Becker 2025-01-27 20:00:34 +01:00 committed by GitHub
parent 62b34412dc
commit efcdcd7bde
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -408,9 +408,6 @@ static void *fontFetch (char **error, void *key)
path = gdEstrdup (fontsearchpath);
/* if name is an absolute filename then test directly */
#ifdef NETWARE
if (*name == '/' || (name[0] != 0 && strstr(name, ":/"))) {
#else
/* Actual length doesn't matter, just the minimum does up to length 2. */
unsigned int min_length = 0;
if (name[0] != '\0') {
@ -422,7 +419,6 @@ static void *fontFetch (char **error, void *key)
}
ZEND_IGNORE_VALUE(min_length); /* On Posix systems this may be unused */
if (IS_ABSOLUTE_PATH(name, min_length)) {
#endif
snprintf(fullname, sizeof(fullname) - 1, "%s", name);
if (access(fullname, R_OK) == 0) {
font_found++;