Bug #77422 [Opn->Csd]: inet_pton() does not produce warning on wrong input anymore

From: Date: Mon, 07 Jan 2019 10:51:17 +0000
Subject: Bug #77422 [Opn->Csd]: inet_pton() does not produce warning on wrong input anymore
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218829@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77422&edit=1 ID: 77422 User updated by: d dot naumenko dot a at gmail dot com Reported by: d dot naumenko dot a at gmail dot com Summary: inet_pton() does not produce warning on wrong input anymore -Status: Open +Status: Closed Type: Bug Package: *Network Functions Operating System: MacOS Mojave PHP Version: 7.3.1RC1 Block user comment: N Private report: N New Comment: Indeed. I have missed the fact that this change is mentioned in Changelog. Closing Previous Comments: ------------------------------------------------------------------------ [2019-01-07 10:46:13] sjon at hortensius dot net this was apparently done on purpose: https://github.com/php/php-src/commit/658a23a9741f6812fcbce32b2811db348edbe91e#diff-742258ef492c653aea63801c951de6f7 I originally wanted to report this as well - but on second thought I support this change - for functions returning false it isn't necessary to also log a warning ------------------------------------------------------------------------ [2019-01-07 10:03:23] d dot naumenko dot a at gmail dot com Description: ------------ Before PHP 7.3, function inet_pton() produced warning on wrong input IP address. It is NOT stated in the documentation, that there should be any warning, however the behavior is changed and it is not mentioned in a changelog. Test script: --------------- https://3v4l.org/55pn5 Expected result: ---------------- Warning is produced Actual result: -------------- No warning is produced ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77422&edit=1

« previous php.bugs (#218829) next »