Ticket #16 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

clientscripts output gzhandler detection

Reported by: xue Owned by: wei
Priority: minor Milestone: 3.0beta
Component: Prado Framework v3 Version: 3.0
Severity: Keywords:
Cc:

Description

1) /framework/Web/Javascripts/clientscripts.php

On lines 29-32:

if ((in_array('gzip', $encodings) isset($_SERVER---------------?)) && function_exists('ob_gzhandler') && !ini_get('zlib.output_compression')) ob_start("ob_gzhandler");

in my php.ini I had output_handler = ob_gzhandler but because ob_gzhandler can't be started twice I got a php error when the above if() condition returned true, because it didn't test for ini_get('output_handler') != 'ob_gzhandler'


2) /framework/Web/Javascripts/extended/base.js AND /framework/Web/Javascripts/extended/util.js

(actual error occurred in /demos/quickstart/assets/5344f349/prado.js)

function isElement (in util.js) has a duplicate (in base.js)

also function $ (in util.js) has a duplicate in prototype lib, but it seems that it's meant to be like that.

Change History

Changed 3 years ago by wei

Fixed 2), unsure how to fix 1)

Changed 3 years ago by wei

  • status changed from new to closed
  • resolution set to fixed

I think it is fixed.

Note: See TracTickets for help on using tickets.