If your script uses the constant a lot, you'll probably get a whole slew of errors if you remove the line in which it's referenced. I would add this to the beginning of the file that you got the original error from:
Code:
define('E_CORE_NOTICE', E_CORE_WARNING);
define('E_COMPILER_NOTICE', E_COMPILER_WARNING);
Without knowing exactly what your script is doing, it's hard to pinpoint an exact solution, but I think this is a reasonable solution requiring little re-coding.
This is what is happening:
Code:
$var = ERROR_DOESNT_EXIST;
echo $var; // prints ERROR_DOESNT_EXIST (a string) and throws an error
define('ERROR_DOESNT_EXIST', 12345);
$var = ERROR_DOESNT_EXIST;
echo $var; // prints 12345 (no error)