]> granicus.if.org Git - php/commitdiff
Fix crash
authorStanislav Malyshev <stas@php.net>
Tue, 5 Sep 2000 19:29:03 +0000 (19:29 +0000)
committerStanislav Malyshev <stas@php.net>
Tue, 5 Sep 2000 19:29:03 +0000 (19:29 +0000)
# This is getting worse... Seems that more work is needed

ext/session/mod_files.c
ext/session/session.c

index 8e5c38d40bdfb871d9ecf9a08ef0001c42c53bd3..2c7e9c71172e4917956232969fe25b3752a4516d 100644 (file)
@@ -16,7 +16,6 @@
    +----------------------------------------------------------------------+
  */
 
-
 #include "php.h"
 
 #include <sys/stat.h>
index 6ddedfcfbf302a9b4d84aaa6dd9b68b93020a9d0..455fd11296d54a423522802212e2213b440cba27 100644 (file)
@@ -108,7 +108,7 @@ static PHP_INI_MH(OnUpdateStringCopy)
 
        p = (char **) (base+(size_t) mh_arg1);
 
-       if(*p) {
+       if(*p && stage != PHP_INI_STAGE_STARTUP) {
                STR_FREE(*p);
        }