|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-01-21 18:52 UTC] J dot Kolakowski at students dot mimuw dot edu dot pl
Some parse errors are caught by assigned error handler, and some are not.
I use:
error_reporting(E_ALL);
set_error_handler('my_error_handler');
For example:
<?php
i_am_some_parse_error
?>
is caught by error handler, and:
<?php
i_am_some_parse_error = 1;
?>
is not caught and displays: "Parse error: parse error in ... on line ...".
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 20:00:01 2025 UTC |
And suppose i have the following main.php file: <?php function my_handler(...) { /* ... */ } error_reporting(E_ALL); set_error_handler('my_handler'); include('file_with_errors.php'); ?> and the file_with_errors.php contains some parse errors. Am I right, that there is no way to handle errors from file_with_errors.php?