From 4d9330093873ef89ca333776af2581f12ecda2c7 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker <cmb@php.net> Date: Fri, 28 Aug 2020 08:22:46 +0000 Subject: [PATCH] Fix #80021: include/require documentation does not mention warnings for missing files git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350405 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/control-structures/include.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/language/control-structures/include.xml b/language/control-structures/include.xml index 276a94cb67..4acc0f4244 100644 --- a/language/control-structures/include.xml +++ b/language/control-structures/include.xml @@ -23,6 +23,12 @@ <function>require</function>, which will emit an <constant>E_ERROR</constant>. </simpara> + <simpara> + Note that both <literal>include</literal> and <literal>require</literal> + raise additional <constant>E_WARNING</constant>s, if the file cannot be + accessed, before raising the final <constant>E_WARNING</constant> or + <constant>E_ERROR</constant>, respectively. + </simpara> <simpara> If a path is defined — whether absolute (starting with a drive letter or <literal>\</literal> on Windows, or <literal>/</literal> on Unix/Linux