Skip to content

Commit c6bbbc3

Browse files
committed
PHPC-1110: Jump on uninitialised variable causes advanceOperationTime test failure
1 parent 877637c commit c6bbbc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MongoDB/Session.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ static bool php_phongo_session_get_timestamp_parts(zval* obj, uint32_t* timestam
3939
{
4040
bool retval = false;
4141
#if PHP_VERSION_ID >= 70000
42-
zval ztimestamp;
43-
zval zincrement;
42+
zval ztimestamp = ZVAL_STATIC_INIT;
43+
zval zincrement = ZVAL_STATIC_INIT;
4444

4545
zend_call_method_with_0_params(obj, NULL, NULL, "getTimestamp", &ztimestamp);
4646

0 commit comments

Comments
 (0)