Bug #77136 [Opn]: Unsupported IPV6_RECVPKTINFO constants on macOS

From: Date: Sat, 10 Nov 2018 15:47:43 +0000
Subject: Bug #77136 [Opn]: Unsupported IPV6_RECVPKTINFO constants on macOS
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-217891@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 User updated by: axnnoindexr11 at gmail dot com Reported by: axnnoindexr11 at gmail dot com Summary: Unsupported IPV6_RECVPKTINFO constants on macOS Status: Open Type: Bug Package: *General Issues Operating System: macOS PHP Version: 7.2.12 Block user comment: N Private report: N New Comment: Related: https://bugs.php.net/bug.php?id=64340 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#217891) next »