php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #41816 should probably say auto_prepend_file is required, not included
Submitted: 2007-06-26 23:07 UTC Modified: 2007-08-16 13:25 UTC
From: stepheneliotdewey at gmail dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
 [2007-06-26 23:07 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-16 13:25 UTC] vrana@php.net
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.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Aug 15 23:00:03 2025 UTC