]> granicus.if.org Git - php/commitdiff
Fixed bug #80718
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 11 Feb 2021 15:49:39 +0000 (16:49 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 11 Feb 2021 15:49:39 +0000 (16:49 +0100)
NEWS
ext/standard/dl.c

diff --git a/NEWS b/NEWS
index 4dc17f36c57298e9372663932ad5ecb75357078c..06898599042e192ff8cc8df685968052be105764 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -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
 
index c1e9fabf404d686682a0738746dd875421b2cdaa..82784f04be3ea87c73b570ffabb20f6d96755f26 100644 (file)
@@ -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)