[php-src] PR #13792: QA - Fix test - filter_input_array - FILTER_NULL_ON_FAILURE
| From: | juan-morales | Date: | Sat, 23 Mar 2024 17:03:34 +0000 |
| Subject: | [php-src] PR #13792: QA - Fix test - filter_input_array - FILTER_NULL_ON_FAILURE | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25525@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13792
Author: juan-morales
After sync and test run all tests locally I found that this test was failing:
ext/filter/tests/filter_input_array_001.phpt
returning NULL.
I read the documentation and it was returning NULL because --GET-- was not
set, and according to the documentation when... in this example INPUT_GET (as used in
the test for the first parameter) was not set ... ergo ... NULL was returned by the
code in the test.
So I changed the test a bit, declaring --GET-- so the expected output could be achieve
in order to test the FILTER_NULL_ON_FAILURE behavior.
Please let me know if I should do anything else, It has been a long time, since
json_validate that I dont contribute to php, now I am back in the game again.