Skip to content

Commit 257774b

Browse files
committed
Merge pull request #23 from wick-ed/master
compatibility to C89 for Windows build
2 parents ee393c7 + 685c991 commit 257774b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/appserver.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,8 @@ PHP_FUNCTION(appserver_set_raw_post_data)
335335
init session state at runtime ... /* }}} */
336336
PHP_FUNCTION(appserver_session_init)
337337
{
338+
zval *nullVal;
339+
338340
if (PS(http_session_vars)) {
339341
zval_ptr_dtor(&PS(http_session_vars));
340342
PS(http_session_vars) = NULL;
@@ -357,7 +359,6 @@ PHP_FUNCTION(appserver_session_init)
357359
PS(http_session_vars) = NULL;
358360

359361
/* update SESSION global and set it NULL */
360-
zval *nullVal;
361362
ALLOC_INIT_ZVAL(nullVal);
362363
Z_TYPE_P(nullVal) = IS_NULL;
363364
zend_hash_update(&EG(symbol_table), "_SESSION", strlen("_SESSION") + 1, &nullVal, sizeof(zval *), NULL);

0 commit comments

Comments
 (0)