scottmac Tue Apr 15 00:32:51 2008 UTC
Modified files:
/php-src/ext/session session.c
Log:
Fixed bug #44722 (Segfault setting a null session path)
http://cvs.php.net/viewvc.cgi/php-src/ext/session/session.c?r1=1.482&r2=1.483&diff_format=u
Index: php-src/ext/session/session.c
diff -u php-src/ext/session/session.c:1.482 php-src/ext/session/session.c:1.483
--- php-src/ext/session/session.c:1.482 Tue Mar 11 09:36:51 2008
+++ php-src/ext/session/session.c Tue Apr 15 00:32:51 2008
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: session.c,v 1.482 2008/03/11 09:36:51 dmitry Exp $ */
+/* $Id: session.c,v 1.483 2008/04/15 00:32:51 scottmac Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -1516,7 +1516,7 @@
Return the current save path passed to module_name. If newname is given,
the save path is replaced with newname */
static PHP_FUNCTION(session_save_path)
{
- char *name;
+ char *name = NULL;
int name_len;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s&", &name,
&name_len, UG(utf8_conv)) == FAILURE) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php