31 ms·
https://3v4l.org/saHj2 https://3v4l.org/saHj2 However you could just catch Exception. Not sure why a parse error is a "Fatal error".
by scandinavian 7y ago
https://3v4l.org/saHj2 https://3v4l.org/saHj2
However you could just catch Exception. Not sure why a parse error is a "Fatal error".
- gnud 7y agoA PHP parse error (of your code) is a fatal error. A xml parsing error in the SimpleXmlElement constructor is not a fatal error - it throws an exception. An uncaught exception is a fatal error.