| Age | Commit message (Collapse) | Author |
|
|
|
|
|
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.
|
|
|
|
So we're disabling simplexml's check on it.
|
|
|
|
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.
|
|
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.
|
|
PHP changed the way it exposes if a function
has variadic arguments or not, hence why we need
yet an other ifdef.
|
|
|
|
- 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
|
|
Add the possibility to log directly into the syslog, instead of using php's log system.
|
|
|
|
|
|
|
|
|
|
PHP 7.3+ added a new prototype for the cookie
setting mechanism, breaking our ghetto samesite-injection,
this commit takes care of it.
|
|
|
|
In php8, it's non-trivial to hook strlen,
since this function is usually optimized away
by the compiler.
|
|
- 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
|
|
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.
```
|
|
|
|
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.
|
|
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.
|
|
|
|
|
|
|
|
Also bump a bit the coverage
|
|
|
|
We only want to prevent crash/infinite recursion,
we don't really care about the error/warning
messages.
|
|
|
|
|
|
|
|
This used to be useful in the times of PHP5.4/Suhosin
(https://github.com/sektioneins/suhosin/issues/60),
but nowadays, php is handling this case on its own.
|
|
|
|
|
|
This commit adds a php version of the upload_validation.py script.
|
|
Since decrypt_zval doesn't provide a way to tell apart failed and successful decryption when used in simulation mode, we'll have to restore the original value if something goes wrong, because crypto_secretbox_open might modify the value.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This is due to our modifications to the logging system
|
|
|
|
|
|
|
|
|