<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)) {

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to