[kronolith] What means "a:0:{}"

Arjen de Korte build+horde at de-korte.org
Wed Apr 3 10:45:34 UTC 2019


Citeren Ferdinand Gruber <fer.grub at yahoo.de>:

> Am 03.04.19 um 06:35 schrieb Ralf Lang:
>> Hi Ferdinand
>>
>> This is a serialisation String for an array/hash of structured  
>> data. They are handled with php serialize / unserialize. a:0 would  
>> be an empty array iirc
>>
>> Am 3. April 2019 00:04:47 MESZ schrieb Ferdinand Gruber <fer.grub at yahoo.de>:
>>
>>    Hi,
>>
>>    in table kronolith_events I see some fields with this value "a:0:{}".
>>
>>    That seems to be the default value for several fields.
>>
>>    Please can you explain to me what this entry means. Is this  
>> value important?
>>
>>    Thank you very much.
>>
>>
>> -- 
>> Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet.
>
> As I made a little program that creates new events in the  
> kronolith_events table, please allow me the question:

You directly put the events in the database Horde is using? Sounds  
fragile to me.

> Should that fields be set to "a:0:{}" as default value?

I would suggest to read up on the developer documentation for Horde  
(https://dev.horde.org/) and use the appropriate API to handle the  
events. You really shouldn't mess with the database bypassing the API.

> Thank you in advance for help.
>
> -- 
> Regards from Austria
> Ferdinand Gruber





More information about the kronolith mailing list