| #
ba6d945f |
| 04-Dec-2025 |
WillForan <willforan@gmail.com> |
lint(Ip32.php): fix spacing
still unsure about function names and order
``` ./vendor/bin/phpcbf --standard=PSR12 ../inc/Ip32.php
------------------------------------------------ FILE
lint(Ip32.php): fix spacing
still unsure about function names and order
``` ./vendor/bin/phpcbf --standard=PSR12 ../inc/Ip32.php
------------------------------------------------ FILE FIXED REMAINING ------------------------------------------------ dokuwiki/inc/Ip32.php 35 0 ```
show more ...
|
| #
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 ...
|