Bug #70252 [Csd->Nab]: Missing AF_INET6 constant

From: Date: Thu, 13 Aug 2015 08:22:47 +0000
Subject: Bug #70252 [Csd->Nab]: Missing AF_INET6 constant
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195180@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70252&edit=1 ID: 70252 Updated by: requinix@php.net Reported by: alec at alec dot pl Summary: Missing AF_INET6 constant -Status: Closed +Status: Not a bug Type: Bug Package: *Network Functions Operating System: Linux PHP Version: 7.0.0beta3 Assigned To: cmb Block user comment: N Private report: N Previous Comments: ------------------------------------------------------------------------ [2015-08-13 07:36:46] alec at alec dot pl Indeed. There's no sockets extension in this installation. Sorry for that. ------------------------------------------------------------------------ [2015-08-12 20:23:49] cmb@php.net AF_INET6 is defined in the sockets extension, so check whether it's loaded in the PHP info or by calling extension_loaded("sockets")). ------------------------------------------------------------------------ [2015-08-12 19:05:44] alec at alec dot pl Description: ------------ I always used this constant to detect if PHP is compiled with IPv6 support. On PHP7 which via phpinfo() says it has enabled IPv6 support defined('AF_INET6') returns false. I use packages from https://launchpad.net/~ondrej/+archive/ubuntu/php-7.0. Test script: --------------- echo (int) defined('AF_INET6'); Expected result: ---------------- 1 Actual result: -------------- 0 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=70252&edit=1

« previous php.bugs (#195180) next »