Some extensions from projects.ez.no provide some .ini.append files (powercontent, extract, xajax, ...). I never see a *.ini.php and but some extensions from projects.ez.no seems to provide one [1]. As others, I would vote for a script that lists and renames files. It would be interesting to throw a warning and propose to rename faulty files in setup/extensions in the admin interface too.
I'm in favor of removing it, BUT I do use .ini.php on one project after I learned about it by hacking on eZINI last year.
This is how it is used:
* settings is in svn * there are three servers, and they share most of the settings, but a few are unique pr server (Session name is one, since two of the servers are behind load balancer and share host name).
So I keep common site.ini settings in settings/override/site.ini.php and server specific settings in settings/override/site.ini.append.php.<last-ip-part> and hard link site.ini.append.php to the correct file pr server. This also means I can override db settings with unversioned site.ini.append.php locally while developing.
So if this is removed, maybe its time to blow off some dust from the old suggestion to add pr server setting? :)
UPDATE: When talking about an issue, its quite ok to link to it gg =): http://issues.ez.no/IssueView.php?Id=15081&activeItem=6
As the format of those ini.*.php files is barely commented ini file inside a php, i would go for simply remove all *.php file (and as Damien suggest a script to handle the renaming thing)
Just looking at eZ Find 2.0.0 extension, which by default has two just *.ini files:
- ezfind.ini
- solr.ini Also, there are no <b>don't edit this file</b> notices in there, so I expect that there might be users out there who will leave those files with custom settings and unchanged extensions.
Not a potential security problem? ;)
Cheers, Piotrek
PS. Also in favor of removing unnecessary options...
@piotrek: thinking more about this, I agree with your comment.
Even though the base settings are called .ini, I think that it would me simpler fi we started out with basic settings that are encapsulated in php comments. This way the 'right way' to define new ini files will be more apparent to extension coders. And it becomes easier for development overall - we only have one ini format.
So I propose now to have:
.ini.php
.ini.append.php
and scrap the rest
Principal Consultant International Business
Member of the Community Project Board
You must be logged in to post messages in this topic!