Bug #72973 [NEW]: Test ip2long_variation2.phpt fails on AIX
| From: | matthieu dot sarter dot external at atos dot net | Date: | Tue, 30 Aug 2016 13:02:17 +0000 |
| Subject: | Bug #72973 [NEW]: Test ip2long_variation2.phpt fails on AIX | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-203678@lists.php.net to get a copy of this message | ||
From: matthieu dot sarter dot external at atos dot net
Operating system: AIX
PHP version: 7.0.10
Package: Network related
Bug Type: Bug
Bug description:Test ip2long_variation2.phpt fails on AIX
Description:
------------
AIX's built-in inet_pton function is less strict than Linux's inet_pton
function : it accepts IP strings containing excedentary O before one of
the fourth integers.
To ensure consistent behaviour on the two OS, I suggest to check for
excendentary O when using PHP's inet_pton on AIX and return false if
they exist. This can easily be done by converting back the integer IP
returned by AIX's inet_pton to a string IP and check if it is the same
as the initial string. This is implemented in the attached patch (tested
with PHP 7.0.3, 7.0.7, 7.0.9 and 7.0.10 on AIX 6.1).
If consistency is not a priority, this test should be skipped when
running on AIX.
--
Edit bug report at https://bugs.php.net/bug.php?id=72973&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72973&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72973&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72973&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72973&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72973&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72973&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72973&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72973&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72973&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72973&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72973&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72973&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72973&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72973&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72973&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72973&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72973&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72973&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72973&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72973&r=mysqlcfg