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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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 )

Pull Requests

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: Thu Nov 21 10:01:29 2024 UTC