php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #32222 some ini setting default values need special attention
Submitted: 2005-03-07 18:09 UTC Modified: 2005-03-07 18:32 UTC
From: philip at cornado dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2005-03-07 18:09 UTC] philip at cornado dot com
Description:
------------
For example:
http://php.net/manual/en/ini.core.php

include_path	PHP_INCLUDE_PATH	PHP_INI_ALL
doc_root	PHP_INCLUDE_PATH	PHP_INI_SYSTEM
user_dir	NULL	PHP_INI_SYSTEM
extension_dir	PHP_EXTENSION_DIR	PHP_INI_SYSTEM

Notice the constants being used as default values, this is not good. 

A couple years ago I posted the following proposal:
* http://marc.theaimsgroup.com/?l=phpdoc&m=105161194723229

In it contains various constants and their associated default values. We need something similar to that for the generated ini table. Perhaps check for default values if said value prefix is "PHP_" (except safe_mode_allowed_env_vars) and have the generation script (phpdoc/scripts/iniupdate/) find and insert the appropriate value OR (but most likely not) simply hardcode them.




Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-03-07 18:21 UTC] nlopess@php.net
The script already searches for C macros. The on-line manual isn't updated.

If you take a look at http://php.net/manual/en/ini.php you can see that the default for include_path is ".;/path/to/php/pear".

If you find any strange value, just say ;)
 [2005-03-07 18:32 UTC] philip@php.net
Nice, it's been fixed in CVS :) How about NULL, should we change that to ""?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 05:01:30 2024 UTC