The socket functions described here are part of an extension to PHP which must be enabled at compile time by giving the --enable-sockets option to configure.
Note: 在 PHP 5.0.0 开始加入了对 IPv6 的支持。