1--TEST-- 2Test parse_ini_file() function : error conditions 3--FILE-- 4<?php 5echo "*** Testing parse_ini_file() : error conditions ***\n"; 6 7//Test parse_ini_file with one more than the expected number of arguments 8echo "\n-- Testing parse_ini_file() function with more than expected no. of arguments --\n"; 9$filename = 'string_val'; 10$process_sections = true; 11$extra_arg = 10; 12var_dump( parse_ini_file($filename, $process_sections, $extra_arg) ); 13 14echo "\n-- Testing parse_ini_file() function with a non-existent file --\n"; 15$filename = __FILE__ . 'invalidfilename'; 16var_dump( parse_ini_file($filename, $process_sections) ); 17 18echo "Done"; 19?> 20--EXPECTF-- 21*** Testing parse_ini_file() : error conditions *** 22 23-- Testing parse_ini_file() function with more than expected no. of arguments -- 24 25Warning: parse_ini_file(%s): Failed to open stream: No such file or directory in %s on line %d 26bool(false) 27 28-- Testing parse_ini_file() function with a non-existent file -- 29 30Warning: parse_ini_file(%s): Failed to open stream: No such file or directory in %s on line %d 31bool(false) 32Done 33