ID: 48960 Updated by: ka...@php.net Reported By: shakertest at live dot no -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: OS X & Ubuntu PHP Version: 5.3.0 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. This is because some errors are meant to be formatted together with a filename and line number to give most sense Previous Comments: ------------------------------------------------------------------------ [2009-07-17 12:46:17] shakertest at live dot no 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48960&edit=1