diff --git a/ext/standard/dl.c b/ext/standard/dl.c index 90ecf3d4cc1..3784c9e9b7d 100644 --- a/ext/standard/dl.c +++ b/ext/standard/dl.c @@ -129,7 +129,7 @@ void php_dl(pval *file, int type, pval *return_value TSRMLS_DC) if (IS_SLASH(extension_dir[extension_dir_len-1])) { sprintf(libpath, "%s%s", extension_dir, Z_STRVAL_P(file)); /* SAFE */ } else { - sprintf(libpath, "%s/%s", extension_dir, Z_STRVAL_P(file)); /* SAFE */ + sprintf(libpath, "%s%c%s", extension_dir, DEFAULT_SLASH, Z_STRVAL_P(file)); /* SAFE */ } } else { libpath = estrndup(Z_STRVAL_P(file), Z_STRLEN_P(file));