summaryrefslogtreecommitdiff
path: root/src/sp_wrapper.c (follow)
AgeCommit message (Collapse)Author
2025-07-15fix: Build PHPPierre Tondereau
2025-06-25Fix debug log statementChristian Göttsche
sp_log_debug() does not take a feature as first argument: src/sp_wrapper.c: In function 'sp_reregister_php_wrapper': src/sp_utils.h:61:53: warning: too many arguments for format [-Wformat-extra-args] 61 | if (sp_debug_stderr > 0) dprintf(sp_debug_stderr, "[snuffleupagus][DEBUG] %s(): " fmt "\n", __FUNCTION__, ##__VA_ARGS__); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sp_wrapper.c:144:3: note: in expansion of macro 'sp_log_debug' 144 | sp_log_debug(LOG_FEATURE, "Stream \"php\" successfully re-registered"); | ^~~~~~~~~~~~
2024-06-09Avoid logging success on failureChristian Göttsche
2024-06-09Ensure to inject php-stream filter also on stream_wrapper_restore()Christian Göttsche
Not sure this is needed, but better safe than sorry.
2024-06-09Add option to specify the allowed "php" wrapper typesChristian Göttsche
In addition of the current possibility to filter wrappers by their protocol name, also add the option to filter the "php" wrapper by the requested kind. Especially the 'filter' backend can be disabled that way.
2021-11-30fixed crash when parsing arguments with PHP 8.1Ben 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-07-22Sprinkle some constjvoisin
2019-06-20Fix snufflepagus_globals linking issues and one mac compatibility issuebef
2019-02-23Try to unify the includesjvoisin
2018-10-06Bump a bit the coveragejvoisin
* `setcookie` doesn't always return `true` anymore * clang-format * Cookies with invalid decryption are dropped, but the request isn't anymore * faulty unserialize are now dumpable
2018-09-10Bump the coveragejvoisin
2018-09-03Fix #241 segfault on 32-bit related to bad protype (#242)Remi Collet
This should close #241
2018-08-27Add whitelist support for php's wrappersxXx-caillou-xXx