Something
public php v1 · immutable /** * Catch errors in ini file */ function get_ini_vars($file,$flag = false){ $old_error_handler = set_error_handler('ini_error_handler',E_ALL); $arr = parse_ini_file($file, $flag); restore_error_handler(); } function ini_error_handler(){ // How do I get the error message HERE << // Warning: Error parsing conf/modules.conf on line 31 //in /home/ircdev/snaps/bambotoo/trunk/core/info.class.php on line 58 die("error"); }