php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77136 Unsupported IPV6_RECVPKTINFO constants on macOS
Submitted: 2018-11-10 15:29 UTC Modified: 2018-11-20 20:17 UTC
From: axnnoindexr11 at gmail dot com Assigned: nikic (profile)
Status: Closed Package: Sockets related
PHP Version: 7.2.12 OS: macOS
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: axnnoindexr11 at gmail dot com
New email:
PHP Version: OS:

 

 [2018-11-10 15:29 UTC] 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"

Patches

define_apple_use_rfc_3542 (last revision 2018-11-10 15:29 UTC by )

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-11-10 15:47 UTC] axnnoindexr11 at gmail dot com
Related: https://bugs.php.net/bug.php?id=64340
 [2018-11-11 02:03 UTC] petk@php.net
-Package: *General Issues +Package: Sockets related
 [2018-11-20 20:17 UTC] nikic@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: nikic
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 08:01:32 2024 UTC