Skip to content

Commit afa54fe

Browse files
committed
sockets: fix test bug_export_stream_type
1 parent 52cab11 commit afa54fe

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ext/sockets/tests/bug_export_stream_type.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sockets
66
<?php
77
$sock = socket_create(AF_INET, SOCK_DGRAM, 0);
88
$stream = socket_export_stream($sock);
9-
echo stream_get_meta_data($stream)['stream_type']. "\n";
9+
echo explode('/', stream_get_meta_data($stream)['stream_type'])[0], "\n";
1010
?>
1111
--EXPECT--
1212
udp_socket

ext/standard/file_arginfo.h

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)