summaryrefslogtreecommitdiff
path: root/ext/standard/tests/network/bug80067.phpt
blob: 19b2c76bb9458f5860458e52e36946004b2a678a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--TEST--
Bug #80067 (Omitting the port in bindto setting errors)
--SKIPIF--
<?php
if (getenv("SKIP_ONLINE_TESTS")) die('skip online test');
?>
--FILE--
<?php
$context = stream_context_create(['socket' => ['bindto' => '0']]);
var_dump(file_get_contents('https://httpbin.org/get', false, $context) !== false);
?>
--EXPECT--
bool(true)