History log of /dokuwiki/_test/tests/inc/IpTest.php (Results 1 – 10 of 10)
Revision Date Author Comments
# 85cddb53 18-Apr-2026 Andreas Gohr <andi@splitbrain.org>

Merge branch 'client_ip_header'

* client_ip_header:
Clean up stale realip references after client_ip_header rename
remove realip option, add default in conf/dokuwiki.php
convert tests to data

Merge branch 'client_ip_header'

* client_ip_header:
Clean up stale realip references after client_ip_header rename
remove realip option, add default in conf/dokuwiki.php
convert tests to data provider
add comment to the real-ip test
add custom client_ip_header

show more ...


# 90c2f6e3 18-Apr-2026 Andreas Gohr <andi@splitbrain.org>

Clean up stale realip references after client_ip_header rename

Update docblocks in Ip.php and common.php, fix old tests to use
the new config key, remove outdated translations, fix method casing
in

Clean up stale realip references after client_ip_header rename

Update docblocks in Ip.php and common.php, fix old tests to use
the new config key, remove outdated translations, fix method casing
in test, and add example to English config description.

show more ...


# fe6048cc 14-Apr-2026 Alexander Lehmann <alexlehm@gmail.com>

remove realip option, add default in conf/dokuwiki.php


# 8f178b70 19-Jan-2026 Alexander Lehmann <alexlehm@gmail.com>

convert tests to data provider


# 6f0cf24e 17-Jan-2026 Alexander Lehmann <alexlehm@gmail.com>

add comment to the real-ip test


# 2b760c9f 15-Jan-2026 Alexander Lehmann <alexlehm@gmail.com>

add custom client_ip_header


# 2f70db90 04-Dec-2025 WillForan <willforan@gmail.com>

fix: 32bit IP tests w/string of decimal representation, overflows

Math in PHP is hard!
sprintf("%.0f",0x7FFFFFFFFFFFFFFF) == sprintf("%.0f",0x7FFFFFFFFFFFFF00)

Changes
* 32bit gets own version o

fix: 32bit IP tests w/string of decimal representation, overflows

Math in PHP is hard!
sprintf("%.0f",0x7FFFFFFFFFFFFFFF) == sprintf("%.0f",0x7FFFFFFFFFFFFF00)

Changes
* 32bit gets own version of tests where expected values are strings
* decimalToBinary32 to replace `sprintf("%032b%032b"...)`, avoids overflow
* overflow check in ipv4 too
* refactor
* partsTo64 for 32bit parts into dec value as str (bcmath)
* Ip32::$b32 as class constant
* condition always PHP_INT_SIZE == 4 for 32bit (instead of == 8 for 64)

show more ...


# a060f5a0 04-Dec-2025 WillForan <willforan@gmail.com>

refactor(ip): PSR-12 functions

bitmask64_32 -> bitmask64On32
make_bitmask_32 -> makeBitmaskOn32
ipv6_upper_lower_32 -> ipv6UpperLowerOn32

also
* uncomment working 7FFF ipv6 test a

refactor(ip): PSR-12 functions

bitmask64_32 -> bitmask64On32
make_bitmask_32 -> makeBitmaskOn32
ipv6_upper_lower_32 -> ipv6UpperLowerOn32

also
* uncomment working 7FFF ipv6 test and
* fix README suggested podman to use `docker://wpstaging`

show more ...


# e7cd6878 20-Sep-2025 WillForan <willforan@gmail.com>

Merge remote-tracking branch 'upstream/master' into 32bitpack


# 7caad012 04-Jun-2025 Andreas Gohr <gohr@cosmocode.de>

extend tests, fix issues with new Ip methods