trailing semicolon.
Also add a do {} while (0) construct in php_session.h
int nothing;
ZEND_END_MODULE_GLOBALS(com)
-PHPAPI ZEND_EXTERN_MODULE_GLOBALS(com);
+PHPAPI ZEND_EXTERN_MODULE_GLOBALS(com)
#ifdef ZTS
#define COMG(v) TSRMG(com_globals_id, zend_com_globals *, v)
#define NCURSES_LS_FETCH()
#endif
-ZEND_EXTERN_MODULE_GLOBALS(ncurses);
+ZEND_EXTERN_MODULE_GLOBALS(ncurses)
#endif /* PHP_NCURSES_H */
ps_files_close(data);
if (!ps_files_valid_key(key)) {
- php_error_docref(NULL TSRMLS_CC, E_WARNING, "The session id contains illegal characters, valid characters are only a-z, A-Z and 0-9");
+ php_error_docref(NULL TSRMLS_CC, E_WARNING, "The session id contains invalid characters, valid characters are only a-z, A-Z and 0-9");
return;
}
if (!ps_files_path_create(buf, sizeof(buf), data, key))
ulong num_key; \
zval **struc;
-#define PS_ENCODE_LOOP(code) \
- { \
+#define PS_ENCODE_LOOP(code) do { \
HashTable *_ht = Z_ARRVAL_P(PS(http_session_vars)); \
\
for (zend_hash_internal_pointer_reset(_ht); \
code; \
} \
} \
- }
+ } while(0)
-ZEND_EXTERN_MODULE_GLOBALS(ps);
+ZEND_EXTERN_MODULE_GLOBALS(ps)
void php_session_auto_start(void *data);
void php_session_shutdown(void *data);