Bug 6105: The replacement of the deprecated ereg function with preg_match solves the 5.3 issue, the missing class insert has been restored in a previous revision so the 5.2 issue is also fixed.

This commit is contained in:
Gustavo Adolfo Cruz Laura
2011-02-14 20:37:44 +00:00
parent 18f3d331f2
commit 765c383e21

View File

@@ -577,7 +577,7 @@ function handleErrors($errno, $errstr, $errfile, $errline)
*/
function handleFatalErrors($buffer)
{
if (ereg('(error</b>:)(.+)(<br)', $buffer, $regs)) {
if (preg_match('/(error<\/b>:)(.+)(<br)/', $buffer, $regs)) {
$err = preg_replace('/<.*?>/', '', $regs[2]);
$aAux = explode(' in ', $err);
$sCode = $_SESSION['_CODE_'];