1--TEST-- 2file_get_contents() test using negative parameter for length (last parameter) 3--CREDITS-- 4"Blanche V.N." <valerie_nare@yahoo.fr> 5"Sylvain R." <sracine@phpquebec.org> 6--INI-- 7display_errors=false 8--FILE-- 9<?php 10try { 11 file_get_contents("http://checkip.dyndns.com",null,null,0,-1); 12} catch (ValueError $exception) { 13 echo $exception->getMessage() . "\n"; 14} 15?> 16--EXPECT-- 17file_get_contents(): Argument #5 ($length) must be greater than or equal to 0 18