Bug #77136 [Opn->Csd]: Unsupported IPV6_RECVPKTINFO constants on macOS
| From: | nikic@php.net | Date: | Tue, 20 Nov 2018 20:17:50 +0000 |
| Subject: | Bug #77136 [Opn->Csd]: Unsupported IPV6_RECVPKTINFO constants on macOS | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-218066@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=77136&edit=1
ID: 77136
Updated by: nikic@php.net
Reported by: axnnoindexr11 at gmail dot com
Summary: Unsupported IPV6_RECVPKTINFO constants on macOS
-Status: Open
+Status: Closed
Type: Bug
Package: Sockets related
Operating System: macOS
PHP Version: 7.2.12
-Assigned To:
+Assigned To: nikic
Block user comment: N
Private report: N
New Comment:
Fixed by https://github.com/php/php-src/commit/e672cd4385d5a72ca8a81677b8c894fdaacfce03
in 7.2+.
Previous Comments:
------------------------------------------------------------------------
[2018-11-10 15:47:43] axnnoindexr11 at gmail dot com
Related: https://bugs.php.net/bug.php?id=64340
------------------------------------------------------------------------
[2018-11-10 15:29:55] axnnoindexr11 at gmail dot com
Description:
------------
PHP supports the IPV6_RECVPKTINFO constant with sockets extension.
However, on macOS, it is not appeared.
On macOS, in.h is exported the constant only when __APPLE_USE_RFC_3542 is defined:
https://opensource.apple.com/source/xnu/xnu-4570.41.2/bsd/netinet6/in6.h.auto.html
Test script:
---------------
<?php
var_dump(defined(IPV6_RECVPKTINFO));
var_dump(IPV6_RECVPKTINFO);
Expected result:
----------------
bool(true)
int(61)
Actual result:
--------------
bool(false)
string(16) "IPV6_RECVPKTINFO"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77136&edit=1