php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #20622 auto_prepend_file 'reset'
Submitted: 2002-11-25 09:00 UTC Modified: 2002-11-29 21:58 UTC
From: msopacua@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.4.0-dev OS: Any
Private report: No CVE-ID: None
 [2002-11-25 09:00 UTC] msopacua@php.net
Dir structure:

foo
 |
 | - bar

In foo:
auto_prepend_file "some_file.php"

In bar:
need to clear that.

Using apache, php_value must have 2 arguments, and thus setting it to "" gives:
php_value takes two arguments, PHP Value Modifier

Work-around: empty.php

Preferable Fix: use a special keyword like "RESET" or "EMPTY" to set it to 'empty'.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-25 09:04 UTC] iliaa@php.net
Try using 'none' as the value, that should clear the value.
 [2002-11-26 07:32 UTC] msopacua@php.net
Yep.
Not document ( http://www.php.net/manual/en/configuration.changes.php ) -> recategorizing.
 [2002-11-26 07:37 UTC] msopacua@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Actually - looking further it's documented under the configuration directives.

(maybe the table 4-5 "Data handling Configuration Options" could list 'none' instead of "").
 [2002-11-26 13:28 UTC] goba@php.net
If you propose a change, why mark it bogus???
 [2002-11-26 14:27 UTC] philip@php.net
Here's some related information.  In php.ini-dist:

; Automatically add files before or after any PHP document.
auto_prepend_file =
auto_append_file =

Which means the default value is essentially "" as the docs say in the defaults table.  Also the docs mention the special none value but could someone explain the difference a bit?  So when setting outside of php.ini one must use none instead of ""?  Does none make sense in php.ini too?
 [2002-11-26 17:16 UTC] msopacua@php.net
goba: because it was documented :) But you're right, it needs change.

philip: looking at the source, this only applies to apache sapi's and goes for any php_value. It is not special for auto_prepend_file. (See sapi/apache/mod_php4.c line 683).

Additionally - the special value 'none' is marked as "systemitem" of class "constant" in en/chapters/config.xml of the documentation. This isn't reflected in the HTML representation in any way.
 [2002-11-29 21:58 UTC] pollita@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

Note added to explain the use of "none"
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Sep 18 23:01:26 2024 UTC