summaryrefslogtreecommitdiff
path: root/ext/session/php_session.h
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2009-05-18 16:10:09 +0000
committerJani Taskinen <jani@php.net>2009-05-18 16:10:09 +0000
commit9ece649f7c64061fc874865ee9a1ab4a0161afce (patch)
treed4f486e070c60aedc10f4407eb30b1643a95c7dd /ext/session/php_session.h
parent82c49a50f462e66af48ec7e25340f950beeb0ba8 (diff)
downloadphp-git-9ece649f7c64061fc874865ee9a1ab4a0161afce.tar.gz
MFH: ws + sync
Diffstat (limited to 'ext/session/php_session.h')
-rw-r--r--ext/session/php_session.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/ext/session/php_session.h b/ext/session/php_session.h
index 2e5290d680..617df6c814 100644
--- a/ext/session/php_session.h
+++ b/ext/session/php_session.h
@@ -220,18 +220,18 @@ PHPAPI const ps_serializer *_php_find_ps_serializer(char *name TSRMLS_DC);
zval **struc;
#define PS_ENCODE_LOOP(code) do { \
- HashTable *_ht = Z_ARRVAL_P(PS(http_session_vars)); \
- int key_type; \
+ HashTable *_ht = Z_ARRVAL_P(PS(http_session_vars)); \
+ int key_type; \
\
- for (zend_hash_internal_pointer_reset(_ht); \
+ for (zend_hash_internal_pointer_reset(_ht); \
(key_type = zend_hash_get_current_key_ex(_ht, &key, &key_length, &num_key, 0, NULL)) != HASH_KEY_NON_EXISTANT; \
- zend_hash_move_forward(_ht)) { \
- if (key_type == HASH_KEY_IS_LONG) { \
- php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Skipping numeric key %ld", num_key); \
- continue; \
- } \
- key_length--; \
- if (php_get_session_var(key, key_length, &struc TSRMLS_CC) == SUCCESS) { \
+ zend_hash_move_forward(_ht)) { \
+ if (key_type == HASH_KEY_IS_LONG) { \
+ php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Skipping numeric key %ld", num_key); \
+ continue; \
+ } \
+ key_length--; \
+ if (php_get_session_var(key, key_length, &struc TSRMLS_CC) == SUCCESS) { \
code; \
} \
} \