PHP Classes

Problem on UID

Recommend this page to a friend!  >  All threads  >  Problem on UID  >  (Un) Subscribe thread alerts  
Subject:Problem on UID
Summary:getOfficeStatus returns identical UIDs for different messages
Date:2009-06-02 14:18:26
Update:2009-06-03 18:04:23

  1. Problem on UID   Reply   Report abuse  
Picture of Yannick Yannick - 2009-06-02 14:18:26
Hi, and thanks for this package, it's really very efficient !

While using getOfficeStatus on a pop3 box, I got several times the same UID for different (and unrelated) messages.
The problem seems to come from the php5 class, on line 486 :
$arrRes[$i]["uid"] = (int) $intUIDL;

According to the specs, an UID is a string, not specifically a number
I suggest setting this to :
$arrRes[$i]["uid"] = $intUIDL;

This solved the problem for me.
I checked in the PHP4 class and the UID is not cast to int, so it should work. However I did not check.


  2. Re: Problem on UID   Reply   Report abuse  
Picture of Steffen Stollfuß Steffen Stollfuß - 2009-06-03 18:04:24 - In reply to message 1 from Yannick

best thanks for reporting this to me. I had fixed in svn and will make a package for phpclasses, too.