reference issue at ini file class

Author Message

Georg Franz

Tuesday 09 August 2005 11:06:54 am

Hi,

Björn told me that he had some problems if he use this code

$ini = eZINI::instance ( ... );

So, the $ini var should be used as a reference like this instead:

$ini =& eZINI::instance ( ... );

This make sense, but I've found the string "= eZINI::instance" (without the &) 32 times in php files which are in the "kernel" directory, and 5 times in php files which are in the lib directory. (ez 3.6.1)

So, my question is:
-) Is it "safe" to ignore this?
-) or should I file a bug report?

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Paul Borgermans

Tuesday 09 August 2005 2:51:56 pm

Hi Georg

It appears to not cause many problems, but yes file a bug report as it makes sense with respect to the refernce bugs in php < 4.4.x.

Regards

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 04:32:39
Script start
Timing: Jan 19 2025 04:32:39
Module start 'layout'
Timing: Jan 19 2025 04:32:39
Module start 'content'
Timing: Jan 19 2025 04:32:40
Module end 'content'
Timing: Jan 19 2025 04:32:40
Script end

Main resources:

Total runtime0.9870 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 590.2969152.6250
Module start 'layout' 0.00630.0032 742.921939.4609
Module start 'content' 0.00950.9762 782.3828532.7734
Module end 'content' 0.98560.0014 1,315.15638.1563
Script end 0.9870  1,323.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3303160.0002
Check MTime0.00120.1230160.0001
Mysql Total
Database connection0.00080.086010.0008
Mysqli_queries0.939795.2078540.0174
Looping result0.00060.0569520.0000
Template Total0.951496.420.4757
Template load0.00230.236420.0012
Template processing0.949196.152220.4745
Template load and register function0.00010.012210.0001
states
state_id_array0.00160.157610.0016
state_identifier_array0.00210.210020.0010
Override
Cache load0.00200.1978190.0001
Sytem overhead
Fetch class attribute can translate value0.00100.098720.0005
Fetch class attribute name0.00130.134540.0003
XML
Image XML parsing0.00100.105420.0005
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00090.0909230.0000
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs