#41816 [Opn->Csd]: should probably say auto_prepend_file is required, not included
| From: | vrana@php.net | Date: | Thu, 16 Aug 2007 13:25:16 +0000 |
| Subject: | #41816 [Opn->Csd]: should probably say auto_prepend_file is required, not included | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969377423@lists.php.net to get a copy of this message | ||
ID: 41816
Updated by: vrana@php.net
Reported By: stepheneliotdewey at gmail dot com
-Status: Open
+Status: Closed
Bug Type: Documentation problem
Operating System: Linux
PHP Version: Irrelevant
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2007-06-26 23:07:28] stepheneliotdewey at gmail dot com
Description:
------------
On the following page:
http://www.php.net/manual/en/ini.core.php#ini.auto-prepend-file
the manual says that the file specified by auto_prepend_file is
included as if it were called by include(). Whereas, in fact, it seems
that the file is included as if it were called by require(), not by
include().
The only difference between include() and require() (at least according
to the documentation at
http://us.php.net/manual/en/function.require.php)
is that require() will
throw a fatal error if the target file cannot be included, whereas
include() does not and only throws a warning.
auto_prepend_file throws a fatal error if the target file cannot be
found. Therefore, I think it is more accurate to say that the behavior
of auto_prepend_file is closest to require(), not to include(), and that
the documentation should be changed accordingly.
Reproduce code:
---------------
n/a
Expected result:
----------------
n/a
Actual result:
--------------
n/a
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41816&edit=1