Re: cvs: php4 /ext/standard dl.c
| From: | Moriyoshi Koizumi | Date: | Mon, 04 Nov 2002 13:22:57 +0000 |
| Subject: | Re: cvs: php4 /ext/standard dl.c | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-15774@lists.php.net to get a copy of this message | ||
It's too late to notice this patch doesn't have much meaning...
Win32 seems smart enough to handle slashes... Should I revert?
Moriyoshi
"Moriyoshi Koizumi" <moriyoshi@at.wakwak.com> wrote:
> moriyoshi Mon Nov 4 07:53:24 2002 EDT
>
> Modified files:
> /php4/ext/standard dl.c
> Log:
> Fixed bug #20243
>
>
> Index: php4/ext/standard/dl.c
> diff -u php4/ext/standard/dl.c:1.78 php4/ext/standard/dl.c:1.79
> --- php4/ext/standard/dl.c:1.78 Thu Oct 24 10:12:06 2002
> +++ php4/ext/standard/dl.c Mon Nov 4 07:53:24 2002
> @@ -18,7 +18,7 @@
> +----------------------------------------------------------------------+
> */
>
> -/* $Id: dl.c,v 1.78 2002/10/24 14:12:06 moriyoshi Exp $ */
> +/* $Id: dl.c,v 1.79 2002/11/04 12:53:24 moriyoshi Exp $ */
>
> #include "php.h"
> #include "dl.h"
> @@ -129,7 +129,7 @@
> 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));
>
>
>
> --
> PHP CVS Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>