From efcdcd7bdef109a47709a3e8c20f498516eaf94a Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Mon, 27 Jan 2025 20:00:34 +0100 Subject: [PATCH] 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] [2] --- ext/gd/libgd/gdft.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ext/gd/libgd/gdft.c b/ext/gd/libgd/gdft.c index 85637a61826..34a4064f5fc 100644 --- a/ext/gd/libgd/gdft.c +++ b/ext/gd/libgd/gdft.c @@ -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++;