cvs: php-src /ext/session session.c

From: Date: Tue, 15 Apr 2008 00:39:43 +0000
Subject: cvs: php-src /ext/session session.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-49631@lists.php.net to get a copy of this message
scottmac Tue Apr 15 00:39:43 2008 UTC Modified files: /php-src/ext/session session.c Log: Fixed bug #44719 (More uninitialised values causing wierd errors) http://cvs.php.net/viewvc.cgi/php-src/ext/session/session.c?r1=1.483&r2=1.484&diff_format=u Index: php-src/ext/session/session.c diff -u php-src/ext/session/session.c:1.483 php-src/ext/session/session.c:1.484 --- php-src/ext/session/session.c:1.483 Tue Apr 15 00:32:51 2008 +++ php-src/ext/session/session.c Tue Apr 15 00:39:43 2008 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: session.c,v 1.483 2008/04/15 00:32:51 scottmac Exp $ */ +/* $Id: session.c,v 1.484 2008/04/15 00:39:43 scottmac Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1626,7 +1626,7 @@ Return the current cache limiter. If new_cache_limited is given, the current cache_limiter is replaced with new_cache_limiter */ static PHP_FUNCTION(session_cache_limiter) { - char *limiter; + char *limiter = NULL; int limiter_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s&", &limiter, &limiter_len, UG(utf8_conv)) == FAILURE) { @@ -1646,7 +1646,7 @@ static PHP_FUNCTION(session_cache_expire) { /* Expires is really a numeric, but the alter_ini_entry method wants a string */ - char *expires; + char *expires = NULL; int expires_len; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s&", &expires, &expires_len, UG(utf8_conv)) == FAILURE) {

« previous php.cvs (#49631) next »