|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-03-17 11:44 UTC] sander@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 09:00:01 2025 UTC |
Use the sample code below to reproduce the error. The second parameter of trigger_error does not function, and the error type always shows up as '2'. I witnessed this running on 4.10 and 4.12. set_error_handler('ErrorHandler'); function ErrorHandler($number, $description, $file, $line) { $file = preg_replace('/\\\\/','/',$file); $message = $description . " at line " . $line . " in ". $file . " and error type ".$number; print "<script language='JavaScript'>alert('$message')</script>"; exit -1; } trigger_error("Testing",E_ERROR);