When using a custom transcoder implementation, if the transcoder throws an exception, Couchbase makes PHP crash.
See sample script to reproduce the issue:
This is PHP 5.6, with Couchbase SDK 2.1.0 NTS x86, Windows 10 with IIS 10.
Expected behaviour is couchbase internally grabs the exception and wraps it or simply throws it again, but does not make the whole PHP crash.
As a side note, the documentation is quite poor regarding how these transcoders work:
Why does the transcoder return an array with two 0 valued elements?
return array(json_encode($value), 0, 0);