summaryrefslogtreecommitdiff
path: root/suhosin7.c
diff options
context:
space:
mode:
Diffstat (limited to 'suhosin7.c')
-rw-r--r--suhosin7.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/suhosin7.c b/suhosin7.c
index b2484a3..3923b57 100644
--- a/suhosin7.c
+++ b/suhosin7.c
@@ -229,7 +229,7 @@ static ZEND_INI_MH(OnUpdateSuhosin_cookie_plainlist)
229 } else { \ 229 } else { \
230 if (is_numeric_string(ZSTR_VAL(new_value), ZSTR_LEN(new_value), NULL, NULL, 0) != IS_LONG) { \ 230 if (is_numeric_string(ZSTR_VAL(new_value), ZSTR_LEN(new_value), NULL, NULL, 0) != IS_LONG) { \
231 SUHOSIN7_G(varname) = S_ALL & ~S_MEMORY; \ 231 SUHOSIN7_G(varname) = S_ALL & ~S_MEMORY; \
232 php_error_docref(NULL TSRMLS_CC, E_WARNING, "unknown constant in %s=%s", inistr, new_value); \ 232 php_error_docref(NULL, E_WARNING, "unknown constant in %s=%s", inistr, new_value); \
233 return FAILURE; \ 233 return FAILURE; \
234 } \ 234 } \
235 SUHOSIN7_G(varname) = zend_atoi(ZSTR_VAL(new_value), ZSTR_LEN(new_value)) & (~S_MEMORY) & (~S_INTERNAL); \ 235 SUHOSIN7_G(varname) = zend_atoi(ZSTR_VAL(new_value), ZSTR_LEN(new_value)) & (~S_MEMORY) & (~S_INTERNAL); \
@@ -457,7 +457,7 @@ PHP_MINIT_FUNCTION(suhosin7)
457 REGISTER_INI_ENTRIES(); 457 REGISTER_INI_ENTRIES();
458 458
459#if !defined(HAVE_PHP_SESSION) && !defined(SUHOSIN_NO_SESSION_WARNING) 459#if !defined(HAVE_PHP_SESSION) && !defined(SUHOSIN_NO_SESSION_WARNING)
460 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Suhosin was compiled without session support, which is probably not what you want. All session related features will not be available, e.g. session encryption. If session support is really not needed, recompile Suhosin with -DSUHOSIN_NO_SESSION_WARNING=1 to suppress this warning."); 460 php_error_docref(NULL, E_WARNING, "Suhosin was compiled without session support, which is probably not what you want. All session related features will not be available, e.g. session encryption. If session support is really not needed, recompile Suhosin with -DSUHOSIN_NO_SESSION_WARNING=1 to suppress this warning.");
461#endif 461#endif
462 462
463 // TODO: stealth loading 463 // TODO: stealth loading
@@ -488,9 +488,6 @@ PHP_MSHUTDOWN_FUNCTION(suhosin7)
488PHP_RINIT_FUNCTION(suhosin7) 488PHP_RINIT_FUNCTION(suhosin7)
489{ 489{
490 SDEBUG("(RINIT)"); 490 SDEBUG("(RINIT)");
491#if defined(COMPILE_DL_SUHOSIN7) && defined(ZTS)
492 ZEND_TSRMLS_CACHE_UPDATE();
493#endif
494 return SUCCESS; 491 return SUCCESS;
495} 492}
496/* }}} */ 493/* }}} */