summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXinchen Hui <laruence@php.net>2012-08-15 00:44:47 +0800
committerXinchen Hui <laruence@php.net>2012-08-15 00:44:47 +0800
commita5a409ebff1037f4b00fdf6d46dd61c72cb6d315 (patch)
treec184848f64944b43f19413d5719b2f2cc15f1e72
parente1c610fb44385cd2894be1957cc32f7cccc4b476 (diff)
downloadphp-git-a5a409ebff1037f4b00fdf6d46dd61c72cb6d315.tar.gz
Fixed bug (segfault due to retval is not initialized)
-rw-r--r--NEWS3
-rw-r--r--ext/session/mod_user.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 985e27456c..c7afe53d94 100644
--- a/NEWS
+++ b/NEWS
@@ -26,6 +26,9 @@ PHP NEWS
. Fixed bug #62715 (ReflectionParameter::isDefaultValueAvailable() wrong
result). (Laruence)
+- Session:
+ . Fixed bug (segfault due to retval is not initialized). (Laruence)
+
- SPL:
. Fixed bug #62616 (ArrayIterator::count() from IteratorIterator instance
gives Segmentation fault). (Laruence, Gustavo)
diff --git a/ext/session/mod_user.c b/ext/session/mod_user.c
index 17af624998..c187e26818 100644
--- a/ext/session/mod_user.c
+++ b/ext/session/mod_user.c
@@ -63,7 +63,7 @@ static zval *ps_call_handler(zval *func, int argc, zval **argv TSRMLS_DC)
}
#define STDVARS1 \
- zval *retval; \
+ zval *retval = NULL; \
int ret = FAILURE
#define STDVARS \