sas Thu Oct 3 11:33:02 2002 EDT Modified files: /php4/ext/session session.c Log: session_decode should not segfault Index: php4/ext/session/session.c diff -u php4/ext/session/session.c:1.331 php4/ext/session/session.c:1.332 --- php4/ext/session/session.c:1.331 Thu Oct 3 11:10:36 2002 +++ php4/ext/session/session.c Thu Oct 3 11:33:00 2002 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: session.c,v 1.331 2002/10/03 15:10:36 sas Exp $ */ +/* $Id: session.c,v 1.332 2002/10/03 15:33:00 sas Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1427,6 +1427,9 @@ if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &str) == FAILURE) WRONG_PARAM_COUNT; + + if (PS(session_status) == php_session_none) + RETURN_FALSE; convert_to_string_ex(str);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php