GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
After a failed operation (get/set etc.) followed by a successful retry getResultCode and getResultMessage return the status from the initial failure not the expected success code/message.
This is because in this scenario i_obj->rescode is not reset to MEMCACHED_SUCCESS after the retry goto. As far as I can see the best place to do this would be in php_memc_handle_error though I may have missed a reason for this not already being the case.
Reset error code on retry attempt. Fixes issue #15
Fixed, the fix will be part of the next release.