#41128 [Opn->Bgs]: Trigger error fails if more than two parameters
| From: | tony2001@php.net | Date: | Wed, 18 Apr 2007 09:34:36 +0000 |
| Subject: | #41128 [Opn->Bgs]: Trigger error fails if more than two parameters | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-111638@lists.php.net to get a copy of this message | ||
ID: 41128
Updated by: tony2001@php.net
Reported By: catzwolf at zarilia dot com
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: windows
PHP Version: 5.2.1
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
http://php.net/trigger_error
Previous Comments:
------------------------------------------------------------------------
[2007-04-18 09:27:05] catzwolf at zarilia dot com
Description:
------------
It seems in php 5.2.1 that there is a bug that will render your 'user
errorhander' useless if you add more than 2 Parameters for the
arguement.
Doing something like this will cause the trap to fail and not trapped.
I don't think that this sort of behaviour would be by design, so a bug?
Reproduce code:
---------------
trigger_error( "oops we have a fatal error", E_USER_ERROR, __LINE_ );
Expected result:
----------------
I would expect the user errorhandler to trap the error and display it
Actual result:
--------------
It is ignored by the user error handler and php internal error handling
displays the error instead.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41128&edit=1