Skip to content

Commit 5199686

Browse files
committed
Fixed bug #80718
1 parent 226395a commit 5199686

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ PHP NEWS
3030
- Standard:
3131
. Fixed bug #80654 (file_get_contents() maxlen fails above (2**31)-1 bytes).
3232
(cmb)
33+
. Fixed bug #80718 (ext/standard/dl.c fallback code path with syntax error).
34+
(Nikita)
3335

3436
21 Jan 2021, PHP 8.0.2
3537

ext/standard/dl.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,9 @@ static void php_dl_error(const char *filename)
247247

248248
PHPAPI void *php_load_shlib(const char *path, char **errp)
249249
{
250-
php_dl_error(filename);
251-
(*errp) = estrdup("No DL support");
250+
php_dl_error(path);
251+
(*errp) = estrdup("No DL support");
252+
return NULL;
252253
}
253254

254255
PHPAPI int php_load_extension(const char *filename, int type, int start_now)

0 commit comments

Comments
 (0)