1--TEST-- 2Bug #79265 variation: "host:" not at start of header 3--INI-- 4allow_url_fopen=1 5--SKIPIF-- 6<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); ?> 7--FILE-- 8<?php 9$uri = "http://www.example.com"; 10$config = [ 11'http' => [ 12'timeout' => PHP_INT_MIN, 13], 14]; 15$ctx = stream_context_create($config); 16var_dump(fopen($uri, "r", false, $ctx)); 17 18$config['http']['timeout'] = PHP_INT_MAX; 19$ctx = stream_context_create($config); 20var_dump(fopen($uri, "r", false, $ctx)); 21?> 22--EXPECTF-- 23resource(%d) of type (stream) 24 25Warning: fopen(http://www.example.com): Failed to open stream: timeout must be lower than %d in %s on line %d 26bool(false) 27