PHP 8.5.0 Alpha 1 available for testing

Voting

: six minus four?
(Example: nine)

The Note You're Voting On

SixPigPigWikiSix
2 years ago
The priority of Parse Error should be higher than that of Fatal Error,Parse Error, which has the highest priority among all PHP exceptions. See the following example:
<?php
error_reporting
(E_ALL);
test()
//System output a parse error
?>
<?php
error_reporting
(E_WARNING);
test()
//System output a parse error
?>
<?php
error_reporting
(E_ERROR);
test()
//System output a parse error
?>
<?php
error_reporting
(E_PARSE);
test()
//System output a parse error
?>

<< Back to user notes page

To Top