Bug #77422 [Com]: inet_pton() does not produce warning on wrong input anymore
| From: | sjon at hortensius dot net | Date: | Mon, 07 Jan 2019 10:46:13 +0000 |
| Subject: | Bug #77422 [Com]: inet_pton() does not produce warning on wrong input anymore | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-218828@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
Comment by: sjon at hortensius dot net
Reported by: d dot naumenko dot a at gmail dot com
Summary: inet_pton() does not produce warning on wrong input
anymore
Status: Open
Type: Bug
Package: *Network Functions
Operating System: MacOS Mojave
PHP Version: 7.3.1RC1
Block user comment: N
Private report: N
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[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