From: Moriyoshi Koizumi Date: Mon, 4 Nov 2002 12:53:24 +0000 (+0000) Subject: Fixed bug #20243 X-Git-Tag: php-4.3.0RC1~298 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90792bca2964629c4f14db5910cd38af24e7f38c;p=php Fixed bug #20243 --- diff --git a/ext/standard/dl.c b/ext/standard/dl.c index 90ecf3d4cc..3784c9e9b7 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));