About magic_quote_gpc

Author Message

M B

Monday 22 January 2007 2:08:15 am

Hello,

Why do you advice users to disable magic_quote_gpc in the finetune section ? I have the feeling that you give highest priority to performance than to security. Am I wrong ?

Thanx for your answer.
M

Michael Maclean

Monday 22 January 2007 9:06:55 am

I believe eZ publish is written assuming that magic_quotes_gpc is off, because it is not ever guaranteed to be there. If it is found to be on, eZ will remove the slashes automatically (see line 124 in lib/ezutils/classes/ezsys.php if you're interested). This will cause a performance hit. Magic quotes is generally seen to be a bad idea, in fact it will be removed along with safe mode in PHP6: http://www.corephp.co.uk/archives/19-Prepare-for-PHP-6.html

eZpedia community documentation project | http://ezpedia.org

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 18 2025 20:48:48
Script start
Timing: Jan 18 2025 20:48:48
Module start 'layout'
Timing: Jan 18 2025 20:48:48
Module start 'content'
Timing: Jan 18 2025 20:48:49
Module end 'content'
Timing: Jan 18 2025 20:48:49
Script end

Main resources:

Total runtime0.8324 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.0054 587.9219152.6250
Module start 'layout' 0.00550.0033 740.546939.4609
Module start 'content' 0.00880.8219 780.0078485.2578
Module end 'content' 0.83070.0017 1,265.26568.1719
Script end 0.8324  1,273.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3773160.0002
Check MTime0.00130.1544160.0001
Mysql Total
Database connection0.00120.141510.0012
Mysqli_queries0.786094.4274540.0146
Looping result0.00050.0646520.0000
Template Total0.795995.620.3979
Template load0.00260.312720.0013
Template processing0.793295.292820.3966
Template load and register function0.00070.083710.0007
states
state_id_array0.00130.160210.0013
state_identifier_array0.00080.096520.0004
Override
Cache load0.00180.221890.0002
Sytem overhead
Fetch class attribute can translate value0.00120.145520.0006
Fetch class attribute name0.00140.167820.0007
XML
Image XML parsing0.00060.066520.0003
class_abstraction
Instantiating content class attribute0.00000.001220.0000
General
dbfile0.00070.0821100.0001
String conversion0.00000.000640.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs