I am trying to store an array in the database, however i noticed a known bug for which there is no fix, any alternatives or work around
known bug in php serialize()
Number of replies: 2Re: known bug in php serialize()
Hi Frederick, You didn't mention what the bug is, we'll need to know that to suggest a workaround!
Re: known bug in php serialize()
you could use json_encode and json_decode as well, which will convert the array into the json text format.
It won't be as fast, but should still be saveable.
You could also look at third party library like https://github.com/protobuf-php/protobuf
It won't be as fast, but should still be saveable.
You could also look at third party library like https://github.com/protobuf-php/protobuf