If you have a typo in a php file that breaks the syntax, the php engine cannot execute the php code and exits. You will see a blank page. The lack of error message makes it difficult to debug the problem because usually the whole php script does not run at all, rather than runs to the erroneous line, so you cannot put echo statement before and after the suspicious line to catch this kind of error. But you can know it is a syntax error through the http status code that returns. The status code is “http/1.1 500 Internal Server Error”.
The Qt QNetworkReply::NetworkError code will be set to 299, which is “an unknown error related to the remote content was detected”. This error description is somewhat accurate because the php syntax error is indeed related to the remote content but specific error information is unknown.
Comments are closed, but trackbacks and pingbacks are open.