Skip to content

Commit a5a409e

Browse files
committed
Fixed bug (segfault due to retval is not initialized)
1 parent e1c610f commit a5a409e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ PHP NEWS
2626
. Fixed bug #62715 (ReflectionParameter::isDefaultValueAvailable() wrong
2727
result). (Laruence)
2828

29+
- Session:
30+
. Fixed bug (segfault due to retval is not initialized). (Laruence)
31+
2932
- SPL:
3033
. Fixed bug #62616 (ArrayIterator::count() from IteratorIterator instance
3134
gives Segmentation fault). (Laruence, Gustavo)

ext/session/mod_user.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ static zval *ps_call_handler(zval *func, int argc, zval **argv TSRMLS_DC)
6363
}
6464

6565
#define STDVARS1 \
66-
zval *retval; \
66+
zval *retval = NULL; \
6767
int ret = FAILURE
6868

6969
#define STDVARS \

0 commit comments

Comments
 (0)