Diff for /embedaddon/php/ext/standard/basic_functions.c between versions 1.1.1.3.2.1 and 1.1.1.3.2.1.2.1

version 1.1.1.3.2.1, 2013/10/14 08:17:38 version 1.1.1.3.2.1.2.1, 2014/06/15 20:15:52
Line 3408  static void php_putenv_destructor(putenv_entry *pe) /* Line 3408  static void php_putenv_destructor(putenv_entry *pe) /*
                 SetEnvironmentVariable(pe->key, "bugbug");                  SetEnvironmentVariable(pe->key, "bugbug");
 #endif  #endif
                 putenv(pe->previous_value);                  putenv(pe->previous_value);
# if defined(PHP_WIN32) || __FreeBSD_version < 700050# if defined(PHP_WIN32)
                 efree(pe->previous_value);                  efree(pe->previous_value);
 # endif  # endif
         } else {          } else {
Line 4062  PHP_FUNCTION(putenv) Line 4062  PHP_FUNCTION(putenv)
                 pe.previous_value = NULL;                  pe.previous_value = NULL;
                 for (env = environ; env != NULL && *env != NULL; env++) {                  for (env = environ; env != NULL && *env != NULL; env++) {
                         if (!strncmp(*env, pe.key, pe.key_len) && (*env)[pe.key_len] == '=') {  /* found it */                          if (!strncmp(*env, pe.key, pe.key_len) && (*env)[pe.key_len] == '=') {  /* found it */
#if defined(PHP_WIN32) || __FreeBSD_version < 700050#if defined(PHP_WIN32)
                                 /* must copy previous value because MSVCRT's putenv can free the string without notice */                                  /* must copy previous value because MSVCRT's putenv can free the string without notice */
                                 pe.previous_value = estrdup(*env);                                  pe.previous_value = estrdup(*env);
 #else  #else

Removed from v.1.1.1.3.2.1  
changed lines
  Added in v.1.1.1.3.2.1.2.1


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>