Answer the question
In order to leave comments, you need to log in
Why doesn't PHP throw errors?
Worth Elementary os, put lamp. The problem is that errors are not displayed in the browser, I already wrote in php.ini:
display_errors = on
display_startup_errors = on
Answer the question
In order to leave comments, you need to log in
What about error_reporting e_all ?
What gives
<?php
phpinfo();
?>
Does it see your php.ini?
PHP Parsing Error - White Screen (Solved!)
I was able to find the cause of the parsing error when PHP 5.6 crashes without any output to the screen or log.
it occurs with mixed HTML + PHP code, when an HTML code block is inserted inside any curly bracket construction, and the opening and closing curly brace is inside DIFFERENT PHP code blocks, starting with different opening tags: <? and <?php
code example that causes PHP to crash:
<?php if (TRUE) { ?>
HTML code here
<? } ?>
no manipulation of directives that control the display of errors, such as these, does not help:
error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT);
ini_set('display_errors', 1);
PS older versions of PHP work without problems
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question