php-imap
php-imap copied to clipboard
fix UID cache issue
fix #218
As identified by @ellisonpatterson is an error in the return of the UIDs. When uid_cache is disabled, a different array structure is returned than when cache is enabled.
This is because during the setUidCache method the array is modified.
In this fix the uid_cache is set and returned directly. Previously a local variable was returned from the getUID() method.
The change was also implemented in the LegacyProtocol. However, this has not yet been tested.