Searched hist:"25 a70af9b4a17fa21228193868c69038088160af" (Results 1 – 2 of 2) sorted by relevance
| /dokuwiki/_test/ |
| H A D | README | 25a70af9b4a17fa21228193868c69038088160af Sat Sep 20 18:45:51 UTC 2025 WillForan <willforan@gmail.com> fix(inc/Ip): 32bit arch compatible range check
* added docs about running tests on 32bit w/ podman. * Updated tests to use string instead of int for comparison when 32bit. * added `make_bitmask_32` and `bitmask64_32`. updated `ipInRange` to use them.
Test failing for `test_ip_to_number` ``` podman run -v $PWD/..:/dokuwiki \ --workdir /dokuwiki/_test -it \ docker://wpstaging/php:8.3-32bit \ ./vendor/bin/phpunit --verbose --stderr --filter ip_test ```
```
1) ip_test::test_ip_to_number with data set #3 ('38AF:3033:AA39:CDE3:1A46:094C...D:5300', 6, 4.084536385505709E+18, 1.8932109165344407E+18) Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'4084536385505709056' +'4084536381210742243'
/dokuwiki/_test/tests/inc/Ip.test.php:52
2) ip_test::test_ip_to_number with data set #5 ('193.53.125.7', 4, 0, 3241508103) Failed asserting that -1053459193 is identical to 3241508103.
```
|
| /dokuwiki/inc/ |
| H A D | Ip.php | 25a70af9b4a17fa21228193868c69038088160af Sat Sep 20 18:45:51 UTC 2025 WillForan <willforan@gmail.com> fix(inc/Ip): 32bit arch compatible range check
* added docs about running tests on 32bit w/ podman. * Updated tests to use string instead of int for comparison when 32bit. * added `make_bitmask_32` and `bitmask64_32`. updated `ipInRange` to use them.
Test failing for `test_ip_to_number` ``` podman run -v $PWD/..:/dokuwiki \ --workdir /dokuwiki/_test -it \ docker://wpstaging/php:8.3-32bit \ ./vendor/bin/phpunit --verbose --stderr --filter ip_test ```
```
1) ip_test::test_ip_to_number with data set #3 ('38AF:3033:AA39:CDE3:1A46:094C...D:5300', 6, 4.084536385505709E+18, 1.8932109165344407E+18) Failed asserting that two strings are identical. --- Expected +++ Actual @@ @@ -'4084536385505709056' +'4084536381210742243'
/dokuwiki/_test/tests/inc/Ip.test.php:52
2) ip_test::test_ip_to_number with data set #5 ('193.53.125.7', 4, 0, 3241508103) Failed asserting that -1053459193 is identical to 3241508103.
```
|