why does this syntax error return HTTP error 500 when 'display_errors' is on?

前端 未结 2 936
别跟我提以往
别跟我提以往 2021-01-23 06:46

given the following script


I get the expected

2条回答
  •  醉梦人生
    2021-01-23 06:54

    If forcing php to show error on run time doesn't work for you, you may try other options like setting it in php.ini instead:

    error_reporting = E_ALL | E_STRICT
    display_errors: On
    

    Good Luck!

提交回复
热议问题