Bug #70252 [Fbk->Csd]: Missing AF_INET6 constant
| From: | alec at alec dot pl | Date: | Thu, 13 Aug 2015 07:36:48 +0000 |
| Subject: | Bug #70252 [Fbk->Csd]: Missing AF_INET6 constant | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-195179@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
User updated by: alec at alec dot pl
Reported by: alec at alec dot pl
Summary: Missing AF_INET6 constant
-Status: Feedback
+Status: Closed
Type: Bug
Package: *Network Functions
Operating System: Linux
PHP Version: 7.0.0beta3
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Indeed. There's no sockets extension in this installation. Sorry for that.
Previous Comments:
------------------------------------------------------------------------
[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