Req #31690 [Opn->Sus]: user specific additions to php.ini
| From: | cmb@php.net | Date: | Wed, 27 Sep 2017 13:49:17 +0000 |
| Subject: | Req #31690 [Opn->Sus]: user specific additions to php.ini | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-211387@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=31690&edit=1
ID: 31690
Updated by: cmb@php.net
Reported by: wf at bitplan dot com
Summary: user specific additions to php.ini
-Status: Open
+Status: Suspended
Type: Feature/Change Request
Package: *Configuration Issues
Operating System: all
PHP Version: 5.0.3
Block user comment: N
Private report: N
New Comment:
In my opinion, it is not desireable to put application settings into php.ini.
These could be supplied in an application specific ini file, instead. I might be
missing a striking argument, though, but it seems to me this feature would
require discussion on internals@lists.php.net and maybe even an RFC (see
<https://wiki.php.net/rfc/howto>). Therefore
I'm suspending this ticket.
Previous Comments:
------------------------------------------------------------------------
[2007-09-03 20:43:08] kenaniah at gmail dot com
I am somewhat surprised to see that PHP can't do this yet. It is definitely something I could
use.
------------------------------------------------------------------------
[2007-06-06 22:27:43] revan02 at googlemail dot com
This kind of feature request would be great on any os.
I've discovered the same issue and it would be great to hear a response because it's now
some time ago that this CR has been submitted.
------------------------------------------------------------------------
[2005-02-09 15:13:26] rb at bitplan dot com
we are developing a product and we need that feature badly. The goal is to have our own section in
php.ini.
------------------------------------------------------------------------
[2005-01-25 20:11:20] wf at bitplan dot com
Description:
------------
a) When adding user specific entries to php.ini these are not returned.
b) the location of php.ini is not available via a standard function
The combination of a + b makes it almost impossible to have user specific additions to php.ini
So ini_get() should allow to read user specific entries
and/or the php.ini location should be available as a variable or via ini_get
Reproduce code:
---------------
a)
php.ini contains:
uml2phphome = "c:/Programme/BITPlan/UML2PHP"
<?php
echo ini_get("uml2phphome");
?>
b)
echo PHP_INI_PATH;
Expected result:
----------------
a) c:/Programme/BITPlan/UML2PHP
b) c:/Windows/PHP.INI on my windows machine
/usr/local/lib/php5.0.3/php.ini on my linux machine
Actual result:
--------------
nothing
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=31690&edit=1