Removed special cases for PHP5 handling.
This commit is contained in:
parent
a781d02678
commit
f3a8175815
|
@ -51,11 +51,7 @@ function errHndl($errno, $errmsg, $filename, $linenum, $vars)
|
||||||
exit($errno);
|
exit($errno);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (PHP5) {
|
$old_error_handler = set_error_handler("errHndl", E_ALL);
|
||||||
$old_error_handler = set_error_handler("errHndl", E_ALL);
|
|
||||||
} else {
|
|
||||||
$old_error_handler = set_error_handler("errHndl");
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ============================================================= runable code */
|
/* ============================================================= runable code */
|
||||||
$r = $dbc = DB::connect($config['dsn'], TRUE);
|
$r = $dbc = DB::connect($config['dsn'], TRUE);
|
||||||
|
|
Loading…
Reference in New Issue