avatar Panagiotis K. Dev Feb 24. 2010. 1:09 am
Hello, when will activecollab fully support PHP 5.3? I run on my server PHP 5.2.12 as a CLI and 5.3.1 as CGI and I see that AC isn't working on 5.3 properly.

(I will add some screenshots if you need and I will do a further investigation on the code later if you are interested)

Thanks
Aviantâ„¢ | Zend PHP 5 Certified Engineer
PHP Development / Symfony 2 / Zend Framework / JavaScript / HTML5 / CSS3
Online CV: panosru.com
avatar Ilija Studen Staff Feb 24. 2010. 2:41 am
activeCollab works well on PHP 5.3. All recent releases have been developed and tested on PHP 5.3 and there is a lot of customers who run in on that platform in production.

Note that you should be using the most recent stable release (activeCollab 2.3).
avatar Panagiotis K. Dev Feb 24. 2010. 2:39 pm
Yes Ilja you where right, I did some customizations on the code which I fixed them.

AC although throws a deprecated error on file /public/assets/css.php and /public/assets/js.php at line 22 on function set_magic_quotes_runtime()

since magic_quotes are by default off for PHP 5.3 and will be removed from PHP 6 I think that this code:

  // Turn magic quotes OFF
  if(get_magic_quotes_gpc()) {
    set_magic_quotes_runtime(0);
  } // if


should be like this:

  // Turn magic quotes OFF if PHP version is lower than 5.3.0
  if (1 !== version_compare(PHP_VERSION, '5.3.0')) {
	  if(get_magic_quotes_gpc()) {
	    set_magic_quotes_runtime(0);
	  } 
  } // if


Now everything works great ;)

EDIT:
Of course there might be a case where someone have PHP 5.3 but have magic_quotes enabled these people should just mute these two functions:

  // Turn magic quotes OFF
  if(@get_magic_quotes_gpc()) {
    @set_magic_quotes_runtime(0);
  } // if


Personally I applied the first code for me which checks magic quotes only if php version is lower than 5.3.0 (Notice that PHP 5.3.0-Dev is lower than 5.3.0 so the code will execute on 5.3.0-Dev but who uses 5.3.0-dev anyway? ;) )
Aviantâ„¢ | Zend PHP 5 Certified Engineer
PHP Development / Symfony 2 / Zend Framework / JavaScript / HTML5 / CSS3
Online CV: panosru.com
avatar Ilija Studen Staff Feb 25. 2010. 5:26 am
This function will be removed in PHP6, so we'll make the system "future compatible" in one of the upcoming bug fix releases:

if(version_compare(PHP_VERSION, '6.0.0', '<') && @get_magic_quotes_gpc()) {
  @set_magic_quotes_runtime(0);
} // if


or something like that...
Requested user profile does not exist