Changeset 5116 in subversion
- Timestamp:
- Aug 24, 2011 3:31:40 AM (21 months ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/include/rcube_imap_generic.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r5112 r5116 2 2 =========================== 3 3 4 - Added unique connection identifier to IMAP debug messages 4 5 - Added 'priority' column on messages list (#1486782) 5 6 - Fix image type check for contact photo uploads -
trunk/roundcubemail/program/include/rcube_imap_generic.php
r5111 r5116 106 106 private $cmd_tag; 107 107 private $cmd_num = 0; 108 private $resourceid; 108 109 private $_debug = false; 109 110 private $_debug_handler = false; … … 735 736 $line = trim(fgets($this->fp, 8192)); 736 737 737 if ($this->_debug && $line) { 738 $this->debug('S: '. $line); 738 if ($this->_debug) { 739 // set connection identifier for debug output 740 preg_match('/#([0-9]+)/', (string)$this->fp, $m); 741 $this->resourceid = strtoupper(substr(md5($m[1].$this->user.microtime()), 0, 4)); 742 743 if ($line) 744 $this->debug('S: '. $line); 739 745 } 740 746 … … 3362 3368 private function debug($message) 3363 3369 { 3370 if ($this->resourceid) { 3371 $message = sprintf('[%s] %s', $this->resourceid, $message); 3372 } 3373 3364 3374 if ($this->_debug_handler) { 3365 3375 call_user_func_array($this->_debug_handler, array(&$this, $message));
Note: See TracChangeset
for help on using the changeset viewer.
