<?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>SyncML\Backend.php: $_packetNum not used</title> 
  <pubDate>Fri, 10 Apr 2026 06:14:13 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/7083</link> 
  <atom:link rel="self" type="application/rss+xml" title="SyncML\Backend.php: $_packetNum not used" href="https://bugs.horde.org/ticket/7083/rss" /> 
  <description>SyncML\Backend.php: $_packetNum not used</description> 
 
   
   
  <item> 
   <title>Hello

It seems that the variable name $_packetNum is not us</title> 
   <description>Hello

It seems that the variable name $_packetNum is not used. The log function is using a local variable $packetNum (and not $_packetNum).



In some cases (when multiples synchronization occur at the same time), the packetNum is not incremented, and some log files may be used twice (see an extract from syncml_log.txt).



DEBUG:  Backend of class SyncML_Backend_Horde created

DEBUG:  Started at 2008-07-18 08:44:50. Packet logged in /var/tmp/HordeSync2/sync/syncml_client_63920.xml

...



DEBUG:  Backend of class SyncML_Backend_Horde created

DEBUG:  Started at 2008-07-18 08:44:54. Packet logged in /var/tmp/HordeSync2/syn

c/syncml_client_63920.xml



Regards

Patrick</description> 
   <pubDate>Fri, 18 Jul 2008 08:55:12 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7083#t47625</link> 
  </item> 
   
  <item> 
   <title>&gt; It seems that the variable name $_packetNum is not used. T</title> 
   <description>&gt; It seems that the variable name $_packetNum is not used. The log 

&gt; function is using a local variable $packetNum (and not $_packetNum).



Correct, I removed the property, thanks.



&gt; In some cases (when multiples synchronization occur at the same 

&gt; time), the packetNum is not incremented, and some log files may be 

&gt; used twice (see an extract from syncml_log.txt).



This could be solved by locking the packetnum.txt file while the logfile is written, but I don&#039;t see the point in it, since this is really only for debugging purposes, and you should only debug in a controlled environment, i.e. where you can make sure that only a single device/user/sync session is tested.</description> 
   <pubDate>Fri, 18 Jul 2008 09:21:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/7083#t47630</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
