B
B
Bagumices2014-04-02 18:02:07
PHP
Bagumices, 2014-04-02 18:02:07

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

All the same, a white screen, checked by division by zero, the absence of a semicolon. Apache did not touch the settings themselves.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Ruslan Kasymov, 2014-04-02
@HDAPache

What about error_reporting e_all ?
What gives

<?php
phpinfo();
?>
Does it see your php.ini?

E
eematveev, 2016-01-11
@eematveev

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 question

Ask a Question

731 491 924 answers to any question