﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
9122	CKFinder for PHP4x websites	zoey		"I've recently updated to the latest CKFinder 2.2.2 in hopes of resolving the Chrome 20x pop-up issue (it did not help, popup problem continues). Since we are on a server which has PHP4x and will not be updating to PHP5 (too many internal server reasons to list here), the new  CKFinder was not loading properly because of this error in the server log:

{{{
PHP Parse error:  parse error, unexpected T_STRING,
 expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}'
 in /.../core/connector/php/php4/Utils/Misc.php on line 54,
}}}

Therefore, in order to successfully get CKFinder loaded, I had to comment out this function beginning in line 54 '''/core/connector/php/php4/Utils/Misc.php'''


{{{
/*    public static function encodeURIComponent($str)
    {
        $revert = array('%21'=>'!', '%2A'=>'*', '%27'=>""'"", '%28'=>'(', '%29'=>')');
        return strtr(rawurlencode($str), $revert);
    }
*/
}}}

With this code commented out, CKFinder loads normally.  I hope these notes help developers in making sure CKFinder will work with either PHP4x or PHP5x in the future."	Bug	closed	Normal		General		fixed	CKFinder	
