summaryrefslogtreecommitdiff
path: root/src (follow)
AgeCommit message (Collapse)Author
2020-11-06Bump the changelogv0.6.0jvoisin
2020-11-06Clang-format againjvoisin
2020-11-06Constify a bit morejvoisin
2020-11-06Use proper prototype declarationjvoisin
2020-10-03Fix the testsuite for php7.4jvoisin
2020-08-16Remove a useless line of codejvoisin
2020-08-16Add a test for the native loggingjvoisin
2020-08-12Allow empty configuration (#342)jvoisin
This commit allows php to run (with a warning) if there is no specified snuffleupagus configuration, instead of refusing to start.
2020-08-07Move an includejvoisin
2020-08-05Add a test for the syslog output of the logsjvoisin
2020-07-22refactoring sp_log_* (#340)Giovanni
Co-authored-by: Giovanni Dante Grazioli <giovanni.dantegrazioli@nbs-system.com>
2020-07-21Fixed issue on impossible bailout.Giovanni Dante Grazioli
2020-07-21Fix #338 - added log type if type is simulation, drop or log. (#339)Giovanni
Co-authored-by: Giovanni Dante Grazioli <giovanni.dantegrazioli@nbs-system.com>
2020-07-12One more constjvoisin
2020-07-12More constificationjvoisin
2020-07-12Use $_SERVER['REMOTE_ADDR'] in last resort to get the client's ip addrjvoisin
2020-07-08Add a couple of `restrict`jvoisin
2020-07-04Fix a small typojvoisin
2020-07-04Reorder some declarationjvoisin
So that the syslog part is tight as possible
2020-07-04Add two tests related to x-forwarded-for and remote-addrjvoisin
2020-07-04Run clang-format on the codebasejvoisin
2020-07-04Factorize how snuffleupagus gets client's ip addrjvoisin
2020-07-04Fix a syslog-related issuejvoisin
Previously, the syslog logging would always go to LOG_ERR no matter the severity.
2020-06-20Bump the changelogv0.5.1jvoisin
2020-06-19Fix the gitlab-ci Ubuntu runnerjvoisin
2020-06-07Fix a broken test on php nightlyjvoisin
Apparently, php is now raising errors for non-existing keys in arrays, so we're now catching the exception to allow the test to be run.
2020-06-07Mark simplexml tests as brokenjvoisin
2020-06-07Travis-ci's SimpleXML setup is weirdjvoisin
So we're disabling simplexml's check on it.
2020-05-14Fix the testsuite under php7.4jvoisin
2020-05-01Make the testsuite work on php7.4jvoisin
Before php7.4, it seems that the curl module was loaded by default, but since it's no the case anymore, it has to be manually specified in the testsuite. Interestingly, Php's testsuite mechanism is running snippets to determine some runtime parameters like the extension directory. Unfortunately,it tries to run them with Snuffleupagus loaded, resulting in an error, since no configuration file is passed.
2020-03-04%s/nbs-system/jvoisinjvoisin
Since I'm the only one to maintain Snuffleupagus, let's adjust the links and contact addresses of my fork, to point to well… my fork.
2020-02-19Improve a bit php8 compatibilityjvoisin
PHP changed the way it exposes if a function has variadic arguments or not, hence why we need yet an other ifdef.
2019-11-03Log ip addresseskkadosh
2019-10-24Improve a bit the compatibility with php8jvoisin
- Apparently, TSRMLS_C and TSRMLS_FETCH aren't defined anymore, so we have to manually define them to nothing - PHP8 constified a bit some strings, which is great, so we should do the same to avoid warnings
2019-08-31Support direct syslog loggingThibault "bui" Koechlin
Add the possibility to log directly into the syslog, instead of using php's log system.
2019-07-09Don't run an openssl-dependent test is openssl isn't installedRemi Collet
2019-07-09Add a stream wrapper test that doesn't depend on openssljvoisin
2019-06-20Fix snufflepagus_globals linking issues and one mac compatibility issuebef
2019-06-12update snuffleupagus.h with new versionkka
2019-05-14Fix the cookie's handling for PHP7.3+jvoisin
PHP 7.3+ added a new prototype for the cookie setting mechanism, breaking our ghetto samesite-injection, this commit takes care of it.
2019-02-23Try to unify the includesjvoisin
2019-02-23Fix the testsuite on php8.jvoisin
In php8, it's non-trivial to hook strlen, since this function is usually optimized away by the compiler.
2019-02-23Add php8 to travis and fix php7.4jvoisin
- Use clang-format on the code - Improve portability wrt. php8 - Fix php7.4 compatibility. See https://dustri.org/b/fixing-snuffleupagus-sloppy-comparison-on-array_keys-for-php74.html for a detailed writeup
2019-02-11Fix a warning on FreeBSDavkarenow
This should fix the following: ```C snuffleupagus/src/sp_config.c:193:10: warning: implicit declaration of function 'getline' is invalid in C99 [-Wimplicit-function-declaration] while (getline(&lineptr, &n, fd) > 0) { ^ 1 warning generated. ```
2019-01-16Fix a compilation warningjvoisin
2019-01-14Reorganize the testsuitejvoisin
Splitting the testsuite in several components makes it easier to manage and comprehend. This was also needed some some tests aren't passing on Alpine Linux, but we still want to run as many of them as we can on this platform.
2019-01-12Fix missing symbol when there is no session supportjvoisin
It's possible to build PHP with sessions as a module, or even without sessions at all. This commit make it possible to use Snuffleupagus on those platforms.
2019-01-12Make compilation stop gracefully in the absence of PCREjvoisin
2019-01-03Add a gitlab-ci file, and a fix test on Fedorajvoisin
2019-01-01Fix a harmless-but-invalid zend_string_releasejvoisin