<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: PHP 5.3 support</title>
  <link>http://www.activecollab.com/forums/topic/5704/</link>
  <description>Recent posts on topic: PHP 5.3 support</description>
  <dc:language>en-us</dc:language>
  <pubDate>Thu, 24 May 2012 07:38:27 CDT</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/25125/#post25125</link>
    <guid>http://www.activecollab.com/forums/post/25125/#post25125</guid>
    <title>Post #4 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>This function will be removed in PHP6, so we'll make the system &quot;future compatible&quot; in one of the upcoming bug fix releases:<br />
<br />
<pre name="code" class="brush: php">if(version_compare(PHP_VERSION, '6.0.0', '&lt;') &amp;&amp; @get_magic_quotes_gpc()) {
  @set_magic_quotes_runtime(0);
} // if</pre><br />
<br />
or something like that...</p>]]></description>
    <pubDate>Thu, 25 Feb 2010 05:26:49 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/25119/#post25119</link>
    <guid>http://www.activecollab.com/forums/post/25119/#post25119</guid>
    <title>Post #3 by Panagiotis K.</title>
    <dc:creator>Panagiotis Kosmidis</dc:creator>
    <description><![CDATA[<p>Yes Ilja you where right, I did some customizations on the code which I fixed them.<br />
<br />
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()<br />
<br />
since magic_quotes are by default off for PHP 5.3 and will be removed from PHP 6 I think that this code: <br />
<br />
<pre name="code" class="brush: php">
  // Turn magic quotes OFF
  if(get_magic_quotes_gpc()) {
    set_magic_quotes_runtime(0);
  } // if
</pre><br />
<br />
should be like this:<br />
<br />
<pre name="code" class="brush: php">
  // 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
</pre><br />
<br />
Now everything works great ;)<br />
<br />
EDIT:<br />
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:<br />
<br />
<pre name="code" class="brush: php">
  // Turn magic quotes OFF
  if(@get_magic_quotes_gpc()) {
    @set_magic_quotes_runtime(0);
  } // if
</pre><br />
<br />
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? ;) )</p>]]></description>
    <pubDate>Wed, 24 Feb 2010 14:39:37 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/25111/#post25111</link>
    <guid>http://www.activecollab.com/forums/post/25111/#post25111</guid>
    <title>Post #2 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>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.<br />
<br />
Note that you should be using the most recent stable release (activeCollab 2.3).</p>]]></description>
    <pubDate>Wed, 24 Feb 2010 02:41:29 CST</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/25106/#post25106</link>
    <guid>http://www.activecollab.com/forums/post/25106/#post25106</guid>
    <title>Post #1 by Panagiotis K.</title>
    <dc:creator>Panagiotis Kosmidis</dc:creator>
    <description><![CDATA[<p>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.<br />
<br />
(I will add some screenshots if you need and I will do a further investigation on the code later if you are interested)<br />
<br />
Thanks</p>]]></description>
    <pubDate>Wed, 24 Feb 2010 01:09:47 CST</pubDate>
  </item>
</channel>
</rss>
