A
A
Alexander Sinitsyn2016-12-20 22:32:53
PHP
Alexander Sinitsyn, 2016-12-20 22:32:53

Why does the script go to require and not return?

There is a code

echo '<!-- test 1-->'; 
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php"); 
echo '<!-- test 3-->';

At the end of header.php added echo '';
It prints test 1 , test 2... but test 3 doesn't.
There are no errors.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg Maksimenko, 2016-12-21
@olegprof

Use a tracer (Xdebug for example) and see where the stop is.
Well, there should be something in the web server error logs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question