#22966 [Opn->Csd]: no error reporting

From: Date: Mon, 31 Mar 2003 07:30:09 +0000
Subject: #22966 [Opn->Csd]: no error reporting
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-36762@lists.php.net to get a copy of this message
ID: 22966 Updated by: sniper@php.net Reported By: phresno at concept-factory dot com -Status: Open +Status: Closed Bug Type: Scripting Engine problem Operating System: Linux 2.4.20, NetBSD 1.6.1_RC2 PHP Version: 4.3.1 New Comment: Can not reproduce. Previous Comments: ------------------------------------------------------------------------ [2003-03-30 15:36:21] phresno at concept-factory dot com Seems to have been my mistake in what I was expecting PHP to report. I still get scripts that die without reporting errors at all such as with leaving off a ;, or not closing a { with }, however, I recieve warnings for incorrect argument counts to functions. ------------------------------------------------------------------------ [2003-03-30 15:02:42] phresno at concept-factory dot com 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); ------------------------------------------------------------------------ [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

« previous php.bugs (#36762) next »