From:             stepheneliotdewey at gmail dot com
Operating system: Linux
PHP version:      Irrelevant
PHP Bug Type:     Documentation problem
Bug description:  should probably say auto_prepend_file is required, not 
included

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 bug report at http://bugs.php.net/?id=41816&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41816&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41816&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41816&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41816&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41816&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41816&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41816&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41816&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41816&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41816&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41816&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41816&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41816&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41816&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41816&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41816&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41816&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41816&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41816&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41816&r=mysqlcfg

Reply via email to