summaryrefslogtreecommitdiff
path: root/ext/standard/dl.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/dl.c')
-rw-r--r--ext/standard/dl.c5
1 files changed, 3 insertions, 2 deletions
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)