While running run.php against code that had an unterminated comment, run.php had a stack trace but exited with a 0 return code. This made detecting the problem more difficult but I believe all programs should handle uncaught exceptions more gracefully.
OK, Error management in PHP is a mess.
Parsing errors are not catchable and are not calling error handlers.
Used a trick with error_get_last to test for parsing errors : http://php.net/manual/en/function.error-get-last.php
Status: Fixed
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: tch...@hotmail.com
(No comment was entered for this change.)
Status: Accepted
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: tch...@hotmail.com
Yes, should catch the exception, report a problem (with the exception message) and continue to the next file.
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: tch...@hotmail.com
OK, Error management in PHP is a mess.
Parsing errors are not catchable and are not calling error handlers.
Used a trick with error_get_last to test for parsing errors : http://php.net/manual/en/function.error-get-last.php
Status: Fixed