I wonder if it is possible to supress errors in PHP like when redeclaring functions, so the execution wont break and the script would just use the first time declared function?
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
PHP has many options to supress errors, such as the
error_reporting()function anddisplay_errorsoption inphp.ini.Re-declaring functions is a fatal error in PHP, which you generally can not gracefully recover from.
You could preprocess the source code, removing duplicate function declarations.