/* Tokenize response. */
$line = implode(' ', array_slice($read, 1));
$binary = $literal = false;
- $this->_temp['token'] = null;
$this->_temp['literal8'] = array();
do {
} while (true);
$ob['token'] = $this->_temp['token']['out'];
+ $this->_temp['token'] = null;
}
break;
*/
protected function _tokenizeData($line)
{
- if (is_null($this->_temp['token'])) {
+ if (empty($this->_temp['token'])) {
$this->_temp['token'] = array(
'in_quote' => false,
'paren' => 0,
break;
case 'CAPABILITY':
- $this->_temp['token'] = null;
$this->_tokenizeData($data);
$this->_parseCapability($this->_temp['token']['out']);
+ $this->_temp['token'] = null;
break;
case 'PARSE':
break;
case 'PERMANENTFLAGS':
- $this->_temp['token'] = null;
$this->_tokenizeData($data);
$this->_temp['mailbox']['permflags'] = array_map('strtolower', reset($this->_temp['token']['out']));
+ $this->_temp['token'] = null;
break;
case 'UIDNEXT':