]> granicus.if.org Git - php/commitdiff
MFH
authorStefan Esser <sesser@php.net>
Fri, 21 Jan 2005 16:04:54 +0000 (16:04 +0000)
committerStefan Esser <sesser@php.net>
Fri, 21 Jan 2005 16:04:54 +0000 (16:04 +0000)
ext/session/session.c

index 043a127cf09fa14d9d8a66eac94cd50693f2ee1a..25356ed7c2cd07f83ee431b51ed16366a5b4a0f5 100644 (file)
@@ -408,7 +408,7 @@ PS_SERIALIZER_DECODE_FUNC(php_binary)
                p += namelen + 1;
                
                if (has_value) {
-                       MAKE_STD_ZVAL(current);
+                       ALLOC_INIT_ZVAL(current);
                        if (php_var_unserialize(&current, (const unsigned char **)&p, endptr, &var_hash TSRMLS_CC)) {
                                php_set_session_var(name, namelen, current, &var_hash  TSRMLS_CC);
                        }
@@ -488,7 +488,7 @@ PS_SERIALIZER_DECODE_FUNC(php)
                q++;
                
                if (has_value) {
-                       MAKE_STD_ZVAL(current);
+                       ALLOC_INIT_ZVAL(current);
                        if (php_var_unserialize(&current, (const unsigned char **)&q, endptr, &var_hash TSRMLS_CC)) {
                                php_set_session_var(name, namelen, current, &var_hash TSRMLS_CC);
                        }