|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-07-17 13:05 UTC] kalle@php.net
[2009-07-17 14:04 UTC] shakertest at live dot no
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 16:00:01 2025 UTC |
Description: ------------ The exception message of an error that has been converted to an ErrorException is getting cut so important information is missing, Reproduce code: --------------- function error_handler($code, $message, $file, $line) { throw new ErrorException($message, $code, 0, $file, $line); } set_error_handler('error_handler'); function hint(array $foo) {} try { hint(123); } catch(Exception $e) { echo $e->getMessage(); } Expected result: ---------------- Argument 1 passed to hint() must be an array, integer given, called in test.php on line 14 and defined in test.php on line 10 Actual result: -------------- Argument 1 passed to hint() must be an array, integer given, called in test.php on line 14 and defined