Closed ponasromas closed 2 years ago
it is imperative to push this modification... it allows to have a fix for php 8+
We need migrate Travis CI to GitHub CI first in order to see how it affects previous versions of PHP
@ponasromas @hayusama using FILTER_UNSAFE_RAW
is actually VERY bad idea.
Any other proposal?
No. PHP declares that FILTER_SANITIZE_STRING == FILTER_UNSAFE_RAW . So both solutions are not the best.
They're not the same. FILTER_UNSAFE_RAW doesn't do anything.
You can check the following test:
https://github.com/Wixel/GUMP/blob/master/tests/Filters/SanitizeStringFilterTest.php
And what sanitize_string do? Please read php docs on that matter and why sanitize_string can be replaced by ...raw.
The test says what it does? :D
Nope, they're not equivalent.
Here is unresolved warning for PHP 8.0/8.1.
PHP Deprecated: Constant FILTER_SANITIZE_STRING is deprecated
/vendor/wixel/gump/gump.class.php on line 1047
I will not even bother to push fix for this as Wixel does not merge any changes for a long time. Quick fix: Change FILTER_SANITIZE_STRING to FILTER_UNSAFE_RAW.