Forums / Suggestions / poll: scrap using .php and .append extensions for ini files

poll: scrap using .php and .append extensions for ini files

Author Message

Gaetano Giunta

Tuesday 30 June 2009 1:41:17 am

The current system checks ini files with the following extensions:
site.ini
site.ini.php
site.ini.append
site.ini.append.php

good practice is to use site.ini and site.ini.append.php.

By not checking the other 2 options, the code for loading ini files could be a bit quicker / lighter.

The question is: is anybody still using those deprecated formats? Shall we just abandon them for 4.2?

Principal Consultant International Business
Member of the Community Project Board

Andreas Adelsberger

Tuesday 30 June 2009 2:29:54 am

I think it is a good idea to remove the other formats, but please provide an update script that automatically renames the deprecated files.

---------------------------------------
Styleflasher New Media OG
Websites. Games/Multimedia.

Jean-Luc Nguyen

Tuesday 30 June 2009 2:38:21 am

Hello,

I have never used
site.ini.php
site.ini.append

files.

http://www.acidre.com

Heath

Tuesday 30 June 2009 2:40:39 am

I always find myself renaming files by hand all the time to use the 'site.ini.append.php' format.

I think dropping the older formats would not affect me negatively.

Please provide a script to rename these older files to the proper format.

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Ole Morten Halvorsen

Tuesday 30 June 2009 2:42:02 am

Just scrap site.ini.php and site.ini.append and provide a script to either detect or rename setting files that might use the deprecated formats.

Ole.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Damien Pobel

Tuesday 30 June 2009 2:50:25 am

Hi Gaetano,

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.

[1] http://www.google.fr/search?hl=fr&safe=off&q=site%3Aprojects.ez.no+%22.ini.php%22&btnG=Rechercher&meta=&aq=f&oq=

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

André R.

Tuesday 30 June 2009 3:28:38 am

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

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Sylvain Gogel

Wednesday 08 July 2009 6:53:51 am

Hi there,

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)

--
http://www.ecedi.fr
Agence Web, Créa/Conseils, Accessibilité
eZPublish, Drupal, Zend, Symfony

Piotrek Karaś

Sunday 27 September 2009 2:56:20 am

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...

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

Gaetano Giunta

Tuesday 23 February 2010 1:29:13 am

@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

eZ debug

Timing: Jan 18 2025 00:56:44
Script start
Timing: Jan 18 2025 00:56:44
Module start 'content'
Timing: Jan 18 2025 00:56:45
Module end 'content'
Timing: Jan 18 2025 00:56:45
Script end

Main resources:

Total runtime1.5962 sec
Peak memory usage4,096.0000 KB
Database Queries229

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0175 587.9688180.7969
Module start 'content' 0.01751.2082 768.7656929.0000
Module end 'content' 1.22570.3705 1,697.7656355.0781
Script end 1.5961  2,052.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.2596210.0002
Check MTime0.00150.0929210.0001
Mysql Total
Database connection0.00180.114310.0018
Mysqli_queries1.446790.63352290.0063
Looping result0.00340.21002270.0000
Template Total1.542796.620.7714
Template load0.00240.147520.0012
Template processing1.540496.501520.7702
Template load and register function0.00010.006810.0001
states
state_id_array0.00210.128910.0021
state_identifier_array0.00240.153120.0012
Override
Cache load0.00230.1462690.0000
Sytem overhead
Fetch class attribute can translate value0.00130.0840100.0001
Fetch class attribute name0.00140.0859180.0001
XML
Image XML parsing0.01240.7752100.0012
class_abstraction
Instantiating content class attribute0.00000.0020190.0000
General
dbfile0.02231.3970720.0003
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
9content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 43
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs