Cotonti / Cotonti

Fast, reliable and flexible PHP CMF/CMS
https://www.cotonti.com
BSD 3-Clause "New" or "Revised" License
92 stars 51 forks source link

PHP 5.3 compatibility #297

Closed trustmaster closed 13 years ago

trustmaster commented 13 years ago

I was testing Cotonti on PHP 5.3 a while ago. Works pretty fine but needs 3 changes:

  1. Getting rid of ereg family functions. Ereg is deprecated in PHP 5.3.
  2. Remove this from common.php: {{{ set_magic_quotes_runtime(0); define('MQGPC', get_magic_quotes_gpc()); }}}
  3. You '''must''' Set default timezone explicitly in config.php, e.g.: {{{ date_default_timezone_set('Europe/Moscow'); }}}

Otherwise it throws a lot of annoying warnings and errors.

trustmaster commented 13 years ago

(In [753]) Fixed #307 PHP 5.3 compatibility, cleaned some plugins.