Bugs #3051: felamimail/esync - PUSH ... no pushmail?

New ticket submitted by camel camel at 2011/10/11 17:11:

Tracking System: Bugs
Category: FelamiMail
Version: Trunk
Status: Open
Resolution: None
Completed: 0%
Priority: 5 - medium
Created by: camel camel
Created on: 2011/10/11 17:11
Assigned to: Ralf Becker
Cc: philip herbert
Summary: #3051 - felamimail/esync - PUSH … no pushmail ?
: the push doesn’t work for me on trunk …
if i remove the static var $folderStatus, then it works.

do i have any other problem - maybe php config problem or what is ongoing here ?

the function does always retunr the same value back (and not the real changes …)
so, it seems to be, that deliver always the same values from first request of this session …

if i remove the statis, then push on activesync is wokring …

/var/www/egroupware_TRUNK/htdocs/egroupware/felamimail/inc/class.felamimail_bo.inc.php [-M–] 0 L:[1001+47 1048/4847] *(37246/195380b) 0009 0x009
function _getStatus($folderName)
{

  •        static $folderStatus;
          if (isset($folderStatus[$this->icServer->ImapServerId][$folderName]))
          {
              //error_log(__METHOD__.__LINE__.' Using cache for status on Server:'.$this->icServer->ImapServerId.' for folder:'.$folderName.'->'.array2string($folderStatus[$this->icServer->ImapServerId][$folderName]));
              return $folderStatus[$this->icServer->ImapServerId][$folderName];
          }
          $folderStatus[$this->icServer->ImapServerId][$folderName] = $this->icServer->getStatus($folderName);
          return $folderStatus[$this->icServer->ImapServerId][$folderName];
      }
    

Linked entries:
https://community.egroupware.org/egroupware/index.php?menuaction=tracker.tracker_ui.edit&tr_id=3051&no_popup=1