Bug #64340 [Csd->Asn]: sockets tests failed
| From: | laruence@php.net | Date: | Sun, 03 Mar 2013 02:55:50 +0000 |
| Subject: | Bug #64340 [Csd->Asn]: sockets tests failed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-177542@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64340&edit=1
ID: 64340
Updated by: laruence@php.net
Reported by: reeze@php.net
Summary: sockets tests failed
-Status: Closed
+Status: Assigned
Type: Bug
Package: Sockets related
Operating System: Mac OSX 10.8
PHP Version: 5.5.0alpha5
-Assigned To: cataphract
+Assigned To: laruence
Block user comment: N
Private report: N
New Comment:
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
http://www.php.net/downloads.php
I commmitted, since reeze doesn't has PHP karma.
please verify the fix.
Previous Comments:
------------------------------------------------------------------------
[2013-03-03 02:53:54] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=f2246f352fc01295c370728d68a9bcd2bb546652
Log: Fixed Bug #64340 (sockets tests failed) Patch by Reeze
------------------------------------------------------------------------
[2013-03-03 02:53:30] laruence@php.net
Automatic comment on behalf of laruence
Revision: http://git.php.net/?p=php-src.git;a=commit;h=f2246f352fc01295c370728d68a9bcd2bb546652
Log: Fixed Bug #64340 (sockets tests failed) Patch by Reeze
------------------------------------------------------------------------
[2013-03-02 19:19:57] cataphract@php.net
What's the deal with having changed the header includes order? I don't really like having
headers that must be included in a specific order, that usually means one header depends on another,
but fails to include it; if there's something that requires the headers to be in a specific
order that should be fixed instead.
As to rest (the skip and the define for __APPLE_USE_RFC_3542), I see no problem with it; you can
commit it yourself.
------------------------------------------------------------------------
[2013-03-02 18:05:30] reeze@php.net
The following patch has been added/updated:
Patch Name: ipv6-pktinfo-and-tiny-test-fix
Revision: 1362247530
URL: https://bugs.php.net/patch-display.php?bug=64340&patch=ipv6-pktinfo-and-tiny-test-fix&revision=1362247530
------------------------------------------------------------------------
[2013-03-02 18:05:22] reeze@php.net
Description:
------------
Failed tests:
Multicast support: IPv6 send options [ext/sockets/tests/mcast_ipv6_send.phpt]
recvmsg(): receive SCM_CREDENTIALS messages
[ext/sockets/tests/socket_cmsg_rights.phpt]
recvmsg(): basic test [ext/sockets/tests/socket_recvmsg.phpt]
sendmsg()/recvmsg(): test ability to receive multiple messages
[ext/sockets/tests/socket_sendrecvmsg_multi_msg.phpt]
Test if socket_recvfrom() receives data sent by socket_sendto() via IPv4 UDP
[ext/sockets/tests/socket_sentto_recvfrom_ipv4_udp.phpt]
socket_set_option() with IPV6_PKTINFO
[ext/sockets/tests/socket_set_option_in6_pktinfo.phpt]\
diff:
==> ext/sockets/tests/mcast_ipv6_send.diff <==
013+
014+ Warning: socket_set_option(): unable to set socket option [49]: Can't
assign requested address in
/Users/reeze/Opensource/php-test/php-src-
master/ext/sockets/tests/mcast_ipv6_send.php on line 26
015+ bool(false)
013- bool(true)
==> ext/sockets/tests/socket_cmsg_rights.diff <==
014+ int(24)
014- int(32)
018+ [name] => Array
019+ (
020+ [family] => 1
021+ [path] =>
022+ )
023+
018- [name] =>
==> ext/sockets/tests/socket_recvmsg.diff <==
007+
008+ Notice: Use of undefined constant IPV6_RECVPKTINFO - assumed
'IPV6_RECVPKTINFO' in /Users/reeze/Opensource/php-
test/php-src-master/ext/sockets/tests/socket_recvmsg.php on line 18
009+
010+ Warning: socket_set_option() expects parameter 3 to be long, string given
in /Users/reeze/Opensource/php-
test/php-src-master/ext/sockets/tests/socket_recvmsg.php on line 18
011+ err
007- int(14)
008- Array
009- (
010- [name] => Array
011- (
012- [family] => %d
013- [addr] => ::1
014- [port] => 7001
015- [flowinfo] => 0
016- [scope_id] => 0
017- )
018-
019- [control] => Array
020- (
021- [0] => Array
022- (
023- [level] => %d
024- [type] => %d
025- [data] => Array
026- (
027- [addr] => ::1
028- [ifindex] => %d
029- )
030-
031- )
032-
033- )
034-
035- [iov] => Array
036- (
037- [0] => testing packet
038- )
039-
040- [flags] => 0
041- )
==> ext/sockets/tests/socket_sendrecvmsg_multi_msg.diff <==
007+
008+ Notice: Use of undefined constant IPV6_RECVPKTINFO - assumed
'IPV6_RECVPKTINFO' in /Users/reeze/Opensource/php-
test/php-src-master/ext/sockets/tests/socket_sendrecvmsg_multi_msg.php on line
18
009+
010+ Warning: socket_set_option() expects parameter 3 to be long, string given
in /Users/reeze/Opensource/php-
test/php-src-master/ext/sockets/tests/socket_sendrecvmsg_multi_msg.php on line
18
011+ err
007- int(11)
008- Array
009- (
010- [name] => Array
011- (
012- [family] => %d
013- [addr] => ::1
014- [port] => 7001
015- [flowinfo] => 0
016- [scope_id] => 0
017- )
018-
019- [control] => Array
020- (
021- [0] => Array
022- (
023- [level] => %d
024- [type] => %d
025- [data] => Array
026- (
027- [addr] => ::1
028- [ifindex] => %d
029- )
030-
031- )
032-
033- [1] => Array
034- (
035- [level] => %d
036- [type] => %d
037- [data] => 40
038- )
039-
040- )
041-
042- [iov] => Array
043- (
044- [0] => test thing
045-
046- )
047-
048- [flags] => 0
049- )
==> ext/sockets/tests/socket_sentto_recvfrom_ipv4_udp.diff <==
007+ bytes have been received instead of the 5 bytes expected
007- Received Ping! from remote address 127.0.0.1 and remote port 1223
==> ext/sockets/tests/socket_set_option_in6_pktinfo.diff <==
001+ Notice: Use of undefined constant IPV6_PKTINFO - assumed 'IPV6_PKTINFO' in
/Users/reeze/Opensource/php-test/php-
src-master/ext/sockets/tests/socket_set_option_in6_pktinfo.php on line 4
002+
003+ Warning: socket_set_option() expects parameter 3 to be long, string given
in /Users/reeze/Opensource/php-
test/php-src-master/ext/sockets/tests/socket_set_option_in6_pktinfo.php on line
4
001- Warning: socket_set_option(): error converting user data (path:
in6_pktinfo): The key 'addr' is required in %s on
line %d
002- bool(false)
003- bool(true)
004+ NULL
005+
006+ Notice: Use of undefined constant IPV6_PKTINFO - assumed 'IPV6_PKTINFO' in
/Users/reeze/Opensource/php-test/php-
src-master/ext/sockets/tests/socket_set_option_in6_pktinfo.php on line 5
007+
008+ Warning: socket_set_option() expects parameter 3 to be long, string given
in /Users/reeze/Opensource/php-
test/php-src-master/ext/sockets/tests/socket_set_option_in6_pktinfo.php on line
8
009+ NULL
Test script:
---------------
For your reference, The attached patch enabled ipv6_pktinfo on os x
Expected result:
----------------
No failure
Actual result:
--------------
failed
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64340&edit=1