<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>Kolab.php compatibility with php5</title> 
  <pubDate>Fri, 10 Apr 2026 09:35:41 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/4062</link> 
  <atom:link rel="self" type="application/rss+xml" title="Kolab.php compatibility with php5" href="https://bugs.horde.org/ticket/4062/rss" /> 
  <description>Kolab.php compatibility with php5</description> 
 
   
   
  <item> 
   <title>Kolab.php does not work together with php5. 



There are so</title> 
   <description>Kolab.php does not work together with php5. 



There are some problems with references which can be fixed using the attached patch.



In addition Kolab.php uses the php4 domxml extension that has been retired in php5. 



While it is possible to use a workaround (I will attach the necessary patches as comments) I guess it is not an acceptable solution to be included into horde. I&#039;d be happy about a suggestion how to properly fix the code for horde and would correct the patch accordingly.</description> 
   <pubDate>Tue, 20 Jun 2006 06:58:45 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4062#t21221</link> 
  </item> 
   
  <item> 
   <title>domxml -&gt; dom patch</title> 
   <description>domxml -&gt; dom patch</description> 
   <pubDate>Tue, 20 Jun 2006 06:59:27 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4062#t21222</link> 
  </item> 
   
  <item> 
   <title>dom-domxml wrapper script</title> 
   <description>dom-domxml wrapper script</description> 
   <pubDate>Tue, 20 Jun 2006 07:00:15 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4062#t21223</link> 
  </item> 
   
  <item> 
   <title>We already have a Horde_DOM class in CVS HEAD for exactly th</title> 
   <description>We already have a Horde_DOM class in CVS HEAD for exactly that purpose. It has been split out from Horde/Config.php (in FRAMEWORK_3), so it should be merged to FRAMEWORK_3 so it can be utilized by Kolab.php. A patch for that would be great.</description> 
   <pubDate>Tue, 20 Jun 2006 09:48:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4062#t21228</link> 
  </item> 
   
  <item> 
   <title>Are you going to update your patch?</title> 
   <description>Are you going to update your patch?</description> 
   <pubDate>Fri, 04 Aug 2006 22:08:08 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4062#t22678</link> 
  </item> 
   
  <item> 
   <title>This would require to rework the handling of xml within the </title> 
   <description>This would require to rework the handling of xml within the Kolab driver. This is something I did not tackle so far. I probably won&#039;t have the time during the next weeks to do that. But I think it makes sense to keep this ticket open, since the conversion will be needed at some timepoint.</description> 
   <pubDate>Fri, 04 Aug 2006 22:18:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4062#t22703</link> 
  </item> 
   
  <item> 
   <title>It took a while but now I converted Kolab.php to use the Hor</title> 
   <description>It took a while but now I converted Kolab.php to use the Horde_DOM package. This is the first half of the patch which needs to be applied to framework/DOM/DOM.php.



It adds a number of additional functions from http://alexandre.alapetite.net/doc-alex/domxml-php4-php5/domxml-php4-to-php5.php.txt that are needed by Kolab.php. 



I hope I matched the style of the horde sources.</description> 
   <pubDate>Tue, 14 Nov 2006 08:52:28 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4062#t26027</link> 
  </item> 
   
  <item> 
   <title>Second half of the patch that applies to Kolab/Kolab.php.


</title> 
   <description>Second half of the patch that applies to Kolab/Kolab.php.



Both new patches apply to current horde cvs.</description> 
   <pubDate>Tue, 14 Nov 2006 09:16:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4062#t26031</link> 
  </item> 
   
  <item> 
   <title>&gt; It took a while but now I converted Kolab.php to use the H</title> 
   <description>&gt; It took a while but now I converted Kolab.php to use the Horde_DOM 

&gt; package. This is the first half of the patch which needs to be 

&gt; applied to framework/DOM/DOM.php.



Great!



&gt; It adds a number of additional functions from 

&gt; http://alexandre.alapetite.net/doc-alex/domxml-php4-php5/domxml-php4-to-php5.php.txt that are needed by 

&gt; Kolab.php.



Please document that including author, license, conditions etc. in the file header.



&gt; I hope I matched the style of the horde sources.



Yes, with one exception: if-clauses must always use curly braces.</description> 
   <pubDate>Tue, 14 Nov 2006 09:47:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4062#t26034</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; It adds a number of additional functions from

&gt;&gt; http://</title> 
   <description>&gt;&gt; It adds a number of additional functions from

&gt;&gt; http://alexandre.alapetite.net/doc-alex/domxml-php4-php5/domxml-php4-to-php5.php.txt that are needed 

&gt;&gt; by

&gt;&gt; Kolab.php.

&gt;

&gt; Please document that including author, license, conditions etc. in 

&gt; the file header.



As mentioned in the header of DOM.php the whole file has been derived from this original script. Both the author and the source url are mentioned in there. I don&#039;t know if DOM.php was derived from a very early version of that original script or if the original version only included the functions that were necessary for horde at that time.



The current version of the script from Alexandre Alapetite contains a number of additional functions not provided by DOM.php at the moment. I did only transfer those additional functions that are needed by Kolab.php.



&gt; Yes, with one exception: if-clauses must always use curly braces.



Fixed. See attachement.</description> 
   <pubDate>Tue, 14 Nov 2006 09:58:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4062#t26035</link> 
  </item> 
   
  <item> 
   <title>Hm, attachment got lost</title> 
   <description>Hm, attachment got lost</description> 
   <pubDate>Tue, 14 Nov 2006 10:00:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4062#t26036</link> 
  </item> 
   
  <item> 
   <title>&gt;&gt; Please document that including author, license, condition</title> 
   <description>&gt;&gt; Please document that including author, license, conditions etc. in

&gt;&gt; the file header.

&gt;

&gt; As mentioned in the header of DOM.php the whole file has been derived 

&gt; from this original script. Both the author and the source url are 

&gt; mentioned in there. I don&#039;t know if DOM.php was derived from a very 



Ok, I didn&#039;t look at the whole file, only the patch.



&gt; early version of that original script or if the original version only 

&gt; included the functions that were necessary for horde at that time.



Only the ones necessary for the configuration code.</description> 
   <pubDate>Tue, 14 Nov 2006 10:47:43 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4062#t26043</link> 
  </item> 
   
  <item> 
   <title>Committed, thanks.



One questions though, shouldn&#039;t the do</title> 
   <description>Committed, thanks.



One questions though, shouldn&#039;t the document object be passed by reference to the dom constructors?</description> 
   <pubDate>Tue, 14 Nov 2006 16:16:09 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4062#t26048</link> 
  </item> 
   
  <item> 
   <title>&gt; Committed, thanks.



Thanks.



&gt; One questions though, s</title> 
   <description>&gt; Committed, thanks.



Thanks.



&gt; One questions though, shouldn&#039;t the document object be passed by 

&gt; reference to the dom constructors?



I don&#039;t see a reason against it but the original script does not do that. So I passed the question to the original author. I hope that I&#039;ll get a reply and would report back then.</description> 
   <pubDate>Tue, 14 Nov 2006 17:19:23 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4062#t26052</link> 
  </item> 
   
  <item> 
   <title>&gt; One questions though, shouldn&#039;t the document object be pas</title> 
   <description>&gt; One questions though, shouldn&#039;t the document object be passed by 

&gt; reference to the dom constructors?



As mentioned I forwarded the question:



One of the Horde programmers wanted to know if it would be better to

pass the parent document as a reference when creating Nodes, Elements

or Attributes (http://bugs.horde.org/ticket/?id=4062). I am not quite

certain if there is a specific reason against it so I thought I just

try to ask you for your opinion.



Answer from Alexandre Alapetite:



I am not really sure to understand your question...



1) When creating a new element, there is already a (indirect) reference to the parent document, as you can see on your line 155

(the &quot;$this&quot; reference)

http://cvs.horde.org/co.php?r=1.5&amp;f=framework%2FDOM%2FDOM.php



    function create_element($name) 

    {

        return new Horde_DOM_Element($this-&gt;node-&gt;createElement($name), $this);

    }



On this line 155, the &quot;$this&quot; is referring to a Horde_DOM_Document which is the parent document, which inherits from

Horde_DOM_Node which contains a reference &quot;$this-&gt;node&quot; or to the real PHP5 XML DOMDocument.





2) If you mean passing the parent document &quot;by reference&quot;, in opposition to &quot;by value&quot;, this is not a good idea as objects

variables in PHP5 are already references. When making an assignment, there is no copy of the object. So passing the parent &quot;by

reference&quot; would make a pointer of pointer quite strange, error prone, and I do not see the interest.





3) In my library since version 1.8 I think, I have an additional attribute &quot;myOwnerDocument&quot; for php4DOMNode objects (which you

call &quot;Horde_DOM_Node&quot;) which is a direct reference to the parent document and provides speed improvement

http://alexandre.alapetite.net/doc-alex/domxml-php4-php5/



See line 196 of

http://alexandre.alapetite.net/doc-alex/domxml-php4-php5/domxml-php4-to-php5.php.txt

You may want to update your code accordingly.

</description> 
   <pubDate>Wed, 15 Nov 2006 11:56:21 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4062#t26068</link> 
  </item> 
   
  <item> 
   <title>So I have to admit that I am slightly confused, mainly becau</title> 
   <description>So I have to admit that I am slightly confused, mainly because my knowledge about php and references is rather limited. Did the answer from Alexandre help or can I do anything else to resolve the question?</description> 
   <pubDate>Wed, 15 Nov 2006 11:58:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4062#t26069</link> 
  </item> 
   
  <item> 
   <title>&gt; So I have to admit that I am slightly confused, mainly bec</title> 
   <description>&gt; So I have to admit that I am slightly confused, mainly because my 

&gt; knowledge about php and references is rather limited. Did the answer 

&gt; from Alexandre help or can I do anything else to resolve the question?



I think Jan&#039;s question was about passing by reference, and that this isn&#039;t necessary in PHP 5, so that should resolve it. Jan?</description> 
   <pubDate>Wed, 15 Nov 2006 20:37:32 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4062#t26108</link> 
  </item> 
   
  <item> 
   <title>Yes, I guess.</title> 
   <description>Yes, I guess.</description> 
   <pubDate>Sun, 14 Jan 2007 13:06:05 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/4062#t28477</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
