summaryrefslogtreecommitdiff
path: root/src/sp_ini.c (follow)
AgeCommit message (Collapse)Author
2025-10-02Rename a handful of global constantsjvoisin
2024-06-06Add format attribute to log function and adjust format specifiersChristian Göttsche
Annotate the common logging function sp_log_msgf() with the format attribute so compilers can check the used format string and passed arguments for discrepancies. Adjust the lineno printing by using %zu and the type size_t consistently.
2023-12-13print key and value on INI violationsChristian Göttsche
On violations of INI settings include the key and if appropriate the value in the log message. This helps to locate offenders and fine tune the configuration itself.
2022-12-10Even more changes to accomodate PHP8.2jvoisin
2022-07-12Constify some variablesjvoisin
2022-02-05introduced sp_regexp / store original regexBen Fuhrmannek
2022-01-10removed some debugging outputBen Fuhrmannek
2021-09-23config is stack allocated now + some code improvements (see details)Ben Fuhrmannek
* for easier memory manegement, the entire sp_config struct was merged into snuffleupagus_globals and allocated on stack where possible * SNUFFLEUPAGUS_G() can be written as SPG(), which is faster to type and easier to read * execution_depth is re-initialized to 0 for each request * function calls with inline string and length parameters consistently use ZEND_STRL instead of sizeof()-1 * execution is actually hooked if recursion protection is enabled * some line breaks were removed to make the code more readable
2021-08-07more ini protection featuresBen Fuhrmannek
2021-08-06implemented ini settings protectionBen Fuhrmannek