Ok this is real bad… it needs not to be an Exception. If the transcoder issues a notice during during decoding, Couchbase will completely crash PHP.
And you DON’T need to be using a custom transcoder for this… if you store a serialized object using the serialized transcoder, and during deserialization (__wakeup) a notice is issued, the same thing happens.
Please fix this, it is completely breaking the Couchbase-Drupal integration:
This repro script only crashes when the XDEBUG extension is enabled. Yet my experience with other PHP extensions is that if enabling XDEBUG makes something crash there is a very very very big chance that the extension is doing something wrong.
And also from my experience - if the maintainer says “don’t use XDEBUG” - the bug will sooner or later surface without using XDEBUG and then it will be much more difficult to hunt down. You now have a reproducible situation for a crash, don’t miss the opportunity to at least investigate it
We have a maintenance release scheduled for March 1. We were trying to ship this earlier and we will not make the February release train. That should alleviate the issue you’re seeing. We can potentially provide a patch in the interim.
I can test before release if that helps. And that would be indeed interesting, although I have tagged stable releases for the Drupal/Couchbase integration, I have not yed pushed that into production but will be doing so during february.