[Tickets #14490] Re: serialization failed

noreply at bugs.horde.org noreply at bugs.horde.org
Tue Oct 18 11:15:44 UTC 2016


BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE  
E-MAIL-ADRESSE WERDEN NICHT GELESEN.

Ticket-URL: https://bugs.horde.org/ticket/14490
------------------------------------------------------------------------------
  Ticket           | 14490
  Aktualisiert Von | marth at tsvschlieben.de
  Zusammenfassung  | serialization failed
  Warteschlange    | IMP
  Version          | 6.2.16
  Typ              | Bug
  Status           | Unconfirmed
  Priorität        | 3. High
  Milestone        |
  Patch            |
  Zuständige       |
------------------------------------------------------------------------------


marth at tsvschlieben.de (2016-10-18 09:10) hat geschrieben:

Sorry - the error message is

"Serialization failed."  (not error)

The 16 is some debug - it's the "mode". 16 means json-data

The code that is responsible is in Horde/Serialize.php

case self::JSON:
             $tmp = json_encode($data);

             /* Basic error handling attempts.
              * TODO: JSON_ERROR_UTF8 = 5; available as of PHP 5.3.3 */
             if (json_last_error() === 5) {
                 $data =  
json_encode(Horde_String::convertCharset($data, $params, 'UTF-8',  
true));
             } else {
                 $data = $tmp;
             }
             break;





More information about the bugs mailing list