ID: 22966
User updated by: phresno at concept-factory dot com
Reported By: phresno at concept-factory dot com
Status: Open
Bug Type: Output Control
-Operating System: Linux 2.4.20
+Operating System: Linux 2.4.20, NetBSD 1.6.1_RC2
PHP Version: 4.3.1
New Comment:
I also tested this with PHP 4.2.3 on a NetBSD system. I've gotten the
same resultes, even when using ini_set("display_errors", "1"); and
ini_set("html_errors", "1"); along with error_reporting(E_ALL);
Previous Comments:
------------------------------------------------------------------------
[2003-03-30 14:50:32] phresno at concept-factory dot com
After trying to use set_error_handler() with my own handler, I now
recieve no error reporting on any script, regardless of using
set_error_handler() or not.
Example:
<?php
error_reporting(E_ALL);
define("STUFF", 1);
if (true)
{
define("STUFF", 2);
?>
Would normally generate messages about trying to redefine STUFF, and
not closing the IF statement; however, I now recieve no
error/warnring/notice messages at all from PHP.
This happened after trying to use set_erro_handler() in a a different
script example:
<?php
function my_handler($_errno, $_errstr, $_errfile, $_errline)
{
printf("%i - %s in %s on line %i",
$_errno,
$_errstr,
$_errfile,
$_errline);
return true;
}
set_error_handler("my_handler");
trigger_error("Just something in general", E_USER_ERROR);
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22966&edit=1