php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #18839 Units for php.ini values
Submitted: 2002-08-09 17:28 UTC Modified: 2002-08-12 17:32 UTC
From: ben at parcelrecords dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 4.2.2 OS: Any
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ben at parcelrecords dot com
New email:
PHP Version: OS:

 

 [2002-08-09 17:28 UTC] ben at parcelrecords dot com
Hi, when using phpinfo(), all the results are listed like this:
option name | local value | master value

what would be really helpful, however (this would be nice to consistently have in the php.ini comments as well)
would be a field for units i.e
option name | local value | master value | units
session.cache_expire | 20 | 20 | minutes
session.gc_maxlifetime | 1200 | 1200 | seconds

that would make it a little easier to figure and configure
thanks,
Ben

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-10 09:35 UTC] kalowsky@php.net
You are welcome to make the php.ini look however you'd like on your machine.  Realize what you're asking is not really a PHP issue, but an administration issue.  We distribute PHP with a list of recommeneded php.ini values, if you change them, how you keep track of them is your choice.  You can, for example, do something like this....

Original will look like this:
foo = 45

Your changes can be kept track like so:
foo = 33 ; 45 | seconds

anything after the ; will be kept as a comment.  
 [2002-08-12 17:32 UTC] ben at parcelrecords dot com
I realize your point, however, I feel that quality documentation out-of-the-box is not an unreasonable request. Many users trying to configure php for the first time (or even subsequently) have problems deciphering some of the options, and even the comments, which can be vague. For instance, 

; The path for which the cookie is valid.
session.cookie_path = /

It is unclear if this means the path on the local machine, the path as seen by the browser-agent, etc.

In addition, consistency in the file would also be preferred, for instance, why is
session.gc_maxlifetime in seconds
session.cache_expire in minutes
max_execution_time in seconds

output_buffering in bytes
memory_limit in megabytes
post_max_size in megabytes
odbc.defaultlrl in bytes
(other db configurations) in bytes

its a minor thing, but still consistency is important.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 14:01:32 2024 UTC