bug80067.phpt 420 B

1234567891011121314
  1. --TEST--
  2. Bug #80067 (Omitting the port in bindto setting errors)
  3. --SKIPIF--
  4. <?php
  5. if (getenv("SKIP_ONLINE_TESTS")) die('skip online test');
  6. if (!in_array('https', stream_get_wrappers())) die('skip: https wrapper is required');
  7. ?>
  8. --FILE--
  9. <?php
  10. $context = stream_context_create(['socket' => ['bindto' => '0']]);
  11. var_dump(file_get_contents('https://httpbin.org/get', false, $context) !== false);
  12. ?>
  13. --EXPECT--
  14. bool(true)