????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 216.73.216.238 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/home/b8009/php-5.6.22/ext/sockets/tests/ |
Upload File : |
--TEST-- socket_set_option() with IPV6_PKTINFO --SKIPIF-- <?php if (!extension_loaded('sockets')) { die('skip sockets extension not available.'); } require 'ipv6_skipif.inc'; if (!defined('IPPROTO_IPV6')) { die('skip IPv6 not available.'); } if (substr(PHP_OS, 0, 3) == 'WIN') { die('skip Not for Windows!'); } if (!defined('IPV6_PKTINFO')) { die('skip IPV6_PKTINFO not available.'); } --FILE-- <?php $s = socket_create(AF_INET6, SOCK_DGRAM, SOL_UDP) or die("err"); var_dump(socket_set_option($s, IPPROTO_IPV6, IPV6_PKTINFO, [])); var_dump(socket_set_option($s, IPPROTO_IPV6, IPV6_PKTINFO, [ "addr" => '::1', "ifindex" => 0 ])); //Oddly, Linux does not support IPV6_PKTINFO in sockgetopt(). //See do_ipv6_getsockopt() on the kernel sources //A work-around with is sort-of possible (with IPV6_2292PKTOPTIONS), //but not worth it //var_dump(socket_get_option($s, IPPROTO_IPV6, IPV6_PKTINFO)); --EXPECTF-- Warning: socket_set_option(): error converting user data (path: in6_pktinfo): The key 'addr' is required in %s on line %d bool(false) bool(true)