[Tickets #12551] Horde_Imap_Client: array_combine() error message

noreply at bugs.horde.org noreply at bugs.horde.org
Thu Aug 8 15:44:16 UTC 2013


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/12551
------------------------------------------------------------------------------
  Ticket             | 12551
  Created By         | Thomas Jarosch <thomas.jarosch at intra2net.com>
  Summary            | Horde_Imap_Client: array_combine() error message
  Queue              | Horde Framework Packages
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


Thomas Jarosch <thomas.jarosch at intra2net.com> (2013-08-08 15:44) wrote:

Hi,

while playing with ActiveSync and a Nokia N900, I noticed this error  
message in the logs:

2013-08-08T17:11:51+02:00 WARN: HORDE [horde] PHP ERROR:  
array_combine() [<a  
href='function.array-combine'>function.array-combine</a>]: Both  
parameters should have an equal number of elements [pid 8511 on line  
3603 of "/datastore/share/pear/Horde/Imap/Client/Base.php"]


The array_combine() call is inside Horde_Imap_Client_Base::resolveIds().

I've added this debug logging code:
-----------------------------------------
@@ -3601,6 +3601,11 @@
              }

              $map->update(array_combine($ids->ids, $res['match']->ids));
+            Horde::log(sprintf('Mailbox: %s', print_r($mailbox,  
true)), 'ERR');
+            Horde::log(sprintf('$ids->ids: %s', print_r($ids->ids,  
true)), 'ERR');
+            Horde::log(sprintf('$res[match]->ids: %s',  
print_r($res['match']->ids, true)), 'ERR');
+            $e = new Exception();
+            Horde::log('Call trace: '.$e->getTraceAsString(), 'ERR');
          }

          return $res['match'];
-----------------------------------------

The corresponding output:

-----------------------------------------
2013-08-08T17:35:24+02:00 WARN: HORDE [horde] PHP ERROR:  
array_combine() [<a  
href='function.array-combine'>function.array-combine</a>]: Both  
parameters should have an equal number of elements [pid 8511 on line  
3603 of "/datastore/share/pear/Horde/Imap/Client/Base.php"]
2013-08-08T17:35:24+02:00 ERR: HORDE [horde] Mailbox:  
Horde_Imap_Client_Mailbox Object
(
     [_utf7imap:protected] => 1
     [_utf8:protected] => INBOX
)
  [pid 8511 on line 3604 of "/datastore/share/pear/Horde/Imap/Client/Base.php"]
2013-08-08T17:35:24+02:00 ERR: HORDE [horde] $ids->ids: Array
(
     [0] => 0
     [1] => 1
)
  [pid 8511 on line 3605 of "/datastore/share/pear/Horde/Imap/Client/Base.php"]
2013-08-08T17:35:24+02:00 ERR: HORDE [horde] $res[match]->ids: Array
(
)
  [pid 8511 on line 3606 of "/datastore/share/pear/Horde/Imap/Client/Base.php"]
2013-08-08T17:35:24+02:00 ERR: HORDE [horde] Call trace: #0  
/datastore/share/pear/Horde/Imap/Client/Base.php(2683):  
Horde_Imap_Client_Base->resolveIds(Object(Horde_Imap_Client_Mailbox),  
Object(Horde_Imap_Client_Ids), 1)
#1 /datastore/share/pear/Horde/Imap/Client/Base.php(2568):  
Horde_Imap_Client_Base->_fetchWrapper(Object(Horde_Imap_Client_Mailbox),  
Object(Horde_Imap_Client_Fetch_Query), Array)
#2 /datastore/share/pear/Horde/ActiveSync/Imap/Adapter.php(396):  
Horde_Imap_Client_Base->fetch(Object(Horde_Imap_Client_Mailbox),  
Object(Horde_Imap_Client_Fetch_Query), Array)
#3 /datastore/share/pear/Horde/Core/ActiveSync/Driver.php(674):  
Horde_ActiveSync_Imap_Adapter->getMessageChanges(Object(Horde_ActiveSync_Folder_Imap),  
Array)
#4 /datastore/share/pear/Horde/ActiveSync/State/Sql.php(892):  
Horde_Core_ActiveSync_Driver->getServerChanges(Object(Horde_ActiveSync_Folder_Imap), 1375972572, 1375976124, 1375716924, false,  
true)
#5 /datastore/share/pear/Horde/ActiveSync/Collections.php(1174):  
Horde_ActiveSync_State_Sql->getChanges(Array)
#6 /datastore/share/pear/Horde/ActiveSync/Collections.php(1183):  
Horde_ActiveSync_Collections->getCollectionChanges(false)
#7 /datastore/share/pear/Horde/ActiveSync/Request/Sync.php(386):  
Horde_ActiveSync_Collections->getCollectionChangeCount()
#8 /datastore/share/pear/Horde/ActiveSync/Request/Base.php(252):  
Horde_ActiveSync_Request_Sync->_handle()
#9 /datastore/share/pear/Horde/ActiveSync.php(861):  
Horde_ActiveSync_Request_Base->handle()
#10 /datastore/share/pear/Horde/Rpc/ActiveSync.php(141):  
Horde_ActiveSync->handleRequest('Sync', '356938030416912')
#11 /datastore/share/pear/www/horde/rpc.php(156):  
Horde_Rpc_ActiveSync->getResponse(NULL)
#12 {main} [pid 8511 on line 3608 of  
"/datastore/share/pear/Horde/Imap/Client/Base.php"]
-----------------------------------------

Cheers,
Thomas





More information about the bugs mailing list