[Tickets #12232] Re: PHP ERROR: array_flip(): Can only flip STRING and INTEGER values! on line 182 of framework/Imap_Client/lib/Horde/Imap/Client/Ids.php

noreply at bugs.horde.org noreply at bugs.horde.org
Fri May 3 13:27:36 UTC 2013


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

Ticket URL: http://bugs.horde.org/ticket/12232
------------------------------------------------------------------------------
  Ticket             | 12232
  Updated By         | Michael Rubinsky <mrubinsk at horde.org>
  Summary            | PHP ERROR: array_flip(): Can only flip STRING and
                     | INTEGER values!  on line 182 of
                     | framework/Imap_Client/lib/Horde/Imap/Client/Ids.php
  Queue              | Synchronization
  Version            | Git master
  Type               | Bug
  State              | Feedback
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


Michael Rubinsky <mrubinsk at horde.org> (2013-05-03 13:27) wrote:

>> Can you provide a stack trace and/or the value of $this->_ids when
>> you get this error?
>
> Ok, this seems to describe why the flip doesn't work ---> on windows  
> client device

BTW, you can simply use print_r($this->_ids, true) to get a printable  
copy of the array values - or better yet, use  
Horde::debug($this->_ids); and this will output to a file named  
horde_debut.txt in your server's tmp directory.

This doesn't explain why the flip doesn't work. They are both arrays.  
The error complains that the value is NOT an array. We need both the  
value of the ids array as well as the backtrace when it doesn't equal  
an array. You can get a backtrace via either debug_bactrace() or just  
use Horde::debug which automatically generates it.







More information about the bugs mailing list