Skip to content

Commit 7532393

Browse files
author
Sascha Schumann
committed
ZTS fixes
1 parent 4993f93 commit 7532393

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

ext/session/session.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,8 @@ zend_module_entry session_module_entry = {
142142
#define ENCODE_VARS \
143143
char *key; \
144144
ulong num_key; \
145-
zval **struc \
146-
PSLS_FETCH(); \
147-
ELS_FETCH();
145+
zval **struc; \
146+
ELS_FETCH()
148147

149148
#define ENCODE_LOOP(code) \
150149
for(zend_hash_internal_pointer_reset(&PS(vars)); \
@@ -189,7 +188,7 @@ PS_SERIALIZER_ENCODE_FUNC(php)
189188
{
190189
zval *buf;
191190
char strbuf[MAX_STR + 1];
192-
ENCODE_VARS
191+
ENCODE_VARS;
193192

194193
buf = ecalloc(sizeof(*buf), 1);
195194
buf->type = IS_STRING;
@@ -252,7 +251,7 @@ PS_SERIALIZER_DECODE_FUNC(php)
252251
PS_SERIALIZER_ENCODE_FUNC(wddx)
253252
{
254253
wddx_packet *packet;
255-
ENCODE_VARS
254+
ENCODE_VARS;
256255

257256
packet = _php_wddx_constructor();
258257
if(!packet) return FAILURE;
@@ -343,6 +342,8 @@ static char *_php_session_encode(int *newlen PSLS_DC)
343342

344343
static void _php_session_decode(const char *val, int vallen PSLS_DC)
345344
{
345+
PLS_FETCH();
346+
346347
if (PG(track_vars))
347348
php_session_track_init();
348349
PS(serializer)->decode(val, vallen PSLS_CC);

0 commit comments

Comments
 (0)