php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77422 inet_pton() does not produce warning on wrong input anymore
Submitted: 2019-01-07 10:03 UTC Modified: 2019-01-07 10:51 UTC
From: d dot naumenko dot a at gmail dot com Assigned:
Status: Closed Package: *Network Functions
PHP Version: 7.3.1RC1 OS: MacOS Mojave
Private report: No CVE-ID: None
 [2019-01-07 10:03 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-07 10:46 UTC] 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:51 UTC] d dot naumenko dot a at gmail dot com
-Status: Open +Status: Closed
 [2019-01-07 10:51 UTC] d dot naumenko dot a at gmail dot com
Indeed. I have missed the fact that this change is mentioned in Changelog. Closing
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat May 25 01:01:26 2019 UTC