Fw: [PHP-DEV] small patch (fixes #19613)
| From: | Steph | Date: | Wed, 23 Jul 2003 22:48:36 +0000 |
| Subject: | Fw: [PHP-DEV] small patch (fixes #19613) | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-3584@lists.php.net to get a copy of this message | ||
<sigh>
and yeah I do take advice. (Wrongly? Rightly?)
--- current_basic_functions.c 2003-07-23 22:18:26.000000000 +0000 +++ basic_functions.c 2003-07-23 22:45:34.000000000 +0000 @@ -1335,14 +1335,19 @@ convert_to_string_ex(str); if (Z_STRVAL_PP(str) && *(Z_STRVAL_PP(str))) { - char *p, **env; + #ifndef PHP_WIN32 + char *p; + #endif + char **env; putenv_entry pe; pe.putenv_string = estrndup(Z_STRVAL_PP(str), Z_STRLEN_PP(str)); pe.key = estrndup(Z_STRVAL_PP(str), Z_STRLEN_PP(str)); + #ifndef PHP_WIN32 if ((p = strchr(pe.key, '='))) { /* nullify the '=' if there is one */ *p = '\0'; } + #endif pe.key_len = strlen(pe.key); if (PG(safe_mode)) {
--- current_basic_functions.c 2003-07-23 22:18:26.000000000 +0000 +++ basic_functions.c 2003-07-23 22:45:34.000000000 +0000 @@ -1335,14 +1335,19 @@ convert_to_string_ex(str); if (Z_STRVAL_PP(str) && *(Z_STRVAL_PP(str))) { - char *p, **env; + #ifndef PHP_WIN32 + char *p; + #endif + char **env; putenv_entry pe; pe.putenv_string = estrndup(Z_STRVAL_PP(str), Z_STRLEN_PP(str)); pe.key = estrndup(Z_STRVAL_PP(str), Z_STRLEN_PP(str)); + #ifndef PHP_WIN32 if ((p = strchr(pe.key, '='))) { /* nullify the '=' if there is one */ *p = '\0'; } + #endif pe.key_len = strlen(pe.key); if (PG(safe_mode)) {