mirror of
https://github.com/php/php-src.git
synced 2026-04-25 00:48:25 +02:00
18 lines
465 B
PHP
18 lines
465 B
PHP
--TEST--
|
|
Bug #80067 (Omitting the port in bindto setting errors)
|
|
--SKIPIF--
|
|
<?php
|
|
if (getenv("SKIP_ONLINE_TESTS")) die('skip online test');
|
|
if (!in_array('https', stream_get_wrappers())) die('skip: https wrapper is required');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$context = stream_context_create([
|
|
'socket' => ['bindto' => '0'],
|
|
'ssl' => ['verify_peer' => false]
|
|
]);
|
|
var_dump(file_get_contents('https://httpbin.org/get', false, $context) !== false);
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|