<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Just a reference base &#187; Horde</title>
	<atom:link href="http://www.troublenow.org/archives/category/horde/feed" rel="self" type="application/rss+xml" />
	<link>http://www.troublenow.org</link>
	<description>Just a reference base</description>
	<lastBuildDate>Thu, 08 Jul 2010 12:52:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FreeBSD Horde php4.4.0 Error</title>
		<link>http://www.troublenow.org/archives/10</link>
		<comments>http://www.troublenow.org/archives/10#comments</comments>
		<pubDate>Fri, 23 Feb 2007 19:52:11 +0000</pubDate>
		<dc:creator>Arno Haverlach</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Horde]]></category>

		<guid isPermaLink="false">http://www.troublenow.org/?p=10</guid>
		<description><![CDATA[ 	* Note that this is a old article saved from a previous blog
So today I upgraded my PHP version to 4.4.0 on this FreeBSD box, Everything seemed to be okay untill I loaded up my webmail thats running Horde. I got a few errors:
Notice: Only variable references should be returned by reference in
/webmail/horde/lib/Horde/Notification.php on [...]]]></description>
			<content:encoded><![CDATA[<p id="post-content"> 	<strong>* Note that this is a old article saved from a previous blog</strong></p>
<p>So today I upgraded my PHP version to 4.4.0 on this FreeBSD box, Everything seemed to be okay untill I loaded up my webmail thats running Horde. I got a few errors:</p>
<pre style="overflow: auto">Notice: Only variable references should be returned by reference in
/webmail/horde/lib/Horde/Notification.php on line 98
Notice: Only variable references should be returned by reference in
/webmail/horde/kronolith/lib/Kronolith.php on line 459</pre>
<p>So crap, that looks like a bug in horde, as I was a version behind on horde I patched my horde, imp, kronolith to the latest version to see if that fixed it.<br />
But badly enough it didn&#8217;t fixed it<br />
After searching the bug list I found it here bug nr 2261. Here they notice that its a bug in PHP, and someone els that it can be fixed by removing the &#8216;&amp;&#8217;s.</p>
<pre style="overflow: auto">This is a backward compatibility break in PHP, so don't blame us.
We are fixing those notices where we see them, any help in form of patches is welcome.</pre>
<p>I don&#8217;t know if this really work, but the error message goes away <img src='http://www.troublenow.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<pre style="overflow: auto">horde/lib/Horde/IMAP/Tree.php
Remove the &amp; on line 292.

horde/lib/Horde/Notification.php
Remove the &amp; on line 94.</pre>
<p>Well the last option certainly works. I like to have a patch for it to not get in trouble upgrading to new versions.<br />
After checking the mailing lists I noticed it was partially fixed in rc2, So it was time to upgrade to rc2.</p>
<pre style="overflow: auto"># cd /webmail/horde/
# wget http://ftp.horde.org/pub/horde/patches/patch-horde-3.0.4-3.0.5-rc1.gz
# gunzip patch-horde-3.0.4-3.0.5-rc1.gz
# patch -p1 &lt; patch-horde-3.0.4-3.0.5-rc1
# wget http://ftp.horde.org/pub/horde/patches/patch-horde-3.0.5-rc1-3.0.5-rc2.gz
# gunzip patch-horde-3.0.5-rc1-3.0.5-rc2.gz
# patch -p1 &lt; patch-horde-3.0.5-rc1-3.0.5-rc2</pre>
<p>Well this seemed to fix it in horde, but still had it in kronolith but there is no fix in kronolith for it yet.. So I had to fix that manually.<br />
Checking the code I had to remove the &amp; on line 366 before _getEvents.</p>
<pre style="overflow: auto"># cd /webmail/horde/kronolith/lib
# cp Kronolith.php Kronolith.php.bak
# vi Kronolith.php

And change line 366 from:
    function &amp;_getEvents(&amp;$results, &amp;$event, $startDate, $endDate,

to:
    function _getEvents(&amp;$results, &amp;$event, $startDate, $endDate,</pre>
<p>That fixed it for now, now its time to wait for the official patch <img src='http://www.troublenow.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.troublenow.org/archives/10/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
