|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #31690 user specific additions to php.ini
Submitted: 2005-01-25 20:11 UTC Modified: 2017-09-27 13:49 UTC
Avg. Score:4.6 ± 0.6
Reproduced:21 of 21 (100.0%)
Same Version:13 (61.9%)
Same OS:14 (66.7%)
From: wf at bitplan dot com Assigned:
Status: Suspended Package: *Configuration Issues
PHP Version: 5.0.3 OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
38 + 32 = ?
Subscribe to this entry?

 [2005-01-25 20:11 UTC] wf at bitplan dot com
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:
php.ini contains:
uml2phphome = "c:/Programme/BITPlan/UML2PHP"

echo ini_get("uml2phphome");


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:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-09 15:13 UTC] 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.
 [2007-06-06 22:27 UTC] 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.
 [2007-09-03 20:43 UTC] 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.
 [2016-12-30 22:52 UTC]
-Package: Feature/Change Request +Package: *Configuration Issues
 [2017-09-27 13:49 UTC]
-Status: Open +Status: Suspended
 [2017-09-27 13:49 UTC]
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 and maybe even an RFC (see
<>). Therefore I'm suspending this ticket.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 16 16:01:27 2024 UTC