BugBuster1701 / contao-botdetection-bundle

Contao 4/5 BotDetection Bundle
GNU Lesser General Public License v3.0
0 stars 1 forks source link

phpunit, php7.4: Deprecated: Invalid characters passed for attempted conversion #40

Closed BugBuster1701 closed 4 years ago

BugBuster1701 commented 4 years ago
Check Bot Ip
 ✘ Check ip with data set #8
   │
   │ Invalid characters passed for attempted conversion, these have been ignored
   │
   │ /contao-botdetection-bundle/src/Resources/contao/classes/CheckBotIp.php:345
   │ /contao-botdetection-bundle/src/Resources/contao/classes/CheckBotIp.php:245
   │ /contao-botdetection-bundle/src/Resources/contao/classes/CheckBotIp.php:116
   │ /contao-botdetection-bundle/tests/CheckBotIpTest.php:55
   │
BugBuster1701 commented 4 years ago
base_convert
7.4.0 | Passing invalid characters will now generate a deprecation notice.        
The result will still be computed as if the invalid characters did not exist.

Liegt an der Mapped IPv4 Adresse ::ffff:192.0.2.128, der IP Anteil ist korrekterweise kein Base16 Wert. Der Wert wird so umgewandelt, als wenn die Punkte nicht vorhanden wären.