1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-24 07:42:22 +01:00
Files
2025-01-17 03:54:39 +03:00

40 lines
1.5 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 30c0106d51ac2786b81b27709ca88f1daf07e716 Maintainer: mch Status: ready -->
<!-- Reviewed: no -->
<sect1 xml:id="function.require" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>require</title>
<?phpdoc print-version-for="require"?>
<para>
Выражение <literal>require</literal> работает идентично выражению <function>include</function>,
за исключением того, что выражение <literal>require</literal> также выбросит ошибку <classname>Error</classname>
или до PHP 8.0.0 выдаст ошибку уровня <constant>E_COMPILE_ERROR</constant>,
тогда как выражение <function>include</function> только выдаст предупреждение
в виде ошибки уровня <constant>E_WARNING</constant>.
</para>
<para>
Документация по выражению <function>include</function> рассказывает, как это работает.
</para>
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->