1--TEST-- 2GH-15547 - curl_multi_select overflow on timeout argument 3--EXTENSIONS-- 4curl 5--FILE-- 6<?php 7 8$mh = curl_multi_init(); 9 10try { 11 curl_multi_select($mh, -2500000); 12} catch (\ValueError $e) { 13 echo $e->getMessage() . PHP_EOL; 14} 15curl_multi_close($mh); 16$mh = curl_multi_init(); 17try { 18 curl_multi_select($mh, 2500000); 19} catch (\ValueError $e) { 20 echo $e->getMessage() . PHP_EOL; 21} 22curl_multi_close($mh); 23$mh = curl_multi_init(); 24var_dump(curl_multi_select($mh, 1000000)); 25?> 26--EXPECTF-- 27curl_multi_select(): Argument #2 ($timeout) must be between %d and %d 28curl_multi_select(): Argument #2 ($timeout) must be between %d and %d 29int(0) 30