diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | ext/standard/dl.c | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -30,6 +30,8 @@ PHP NEWS - Standard: . Fixed bug #80654 (file_get_contents() maxlen fails above (2**31)-1 bytes). (cmb) + . Fixed bug #80718 (ext/standard/dl.c fallback code path with syntax error). + (Nikita) 21 Jan 2021, PHP 8.0.2 diff --git a/ext/standard/dl.c b/ext/standard/dl.c index c1e9fabf40..82784f04be 100644 --- a/ext/standard/dl.c +++ b/ext/standard/dl.c @@ -247,8 +247,9 @@ static void php_dl_error(const char *filename) PHPAPI void *php_load_shlib(const char *path, char **errp) { - php_dl_error(filename); - (*errp) = estrdup("No DL support"); + php_dl_error(path); + (*errp) = estrdup("No DL support"); + return NULL; } PHPAPI int php_load_extension(const char *filename, int type, int start_now) |