<?phpxcache_inc("XXX");//first invocation does not segfault...
xcache_inc("XXX");//but the second one does
?>
Program received signal SIGSEGV, Segmentation fault.
0xb7ebee9b in zif_xcache_get_special_value () from /usr/lib/php5/xcache.so

same with xcache_dec():

<?phpxcache_dec("abc");xcache_dec("abc");?>
Program received signal SIGSEGV, Segmentation fault.
0xb7f51e9b in zif_xcache_get_special_value () from /usr/lib/php5/xcache.so

Also, all of the variable API functions segfault when the variable cache is not enabled... maybe it is a good idea to have a more graceful error handler? :)

I see that the check would fix the segfaults when the varcache isn't enabled, but is the segfaults with xcache_inc/xcache_dec also fixed in HEAD? They occur when the varcache is enabled; using xcache_set/xcache_get is fine but not inc/dec.

Those patches fix segfaults when the varcache isn't enabled, but what about when it is? xcache_inc/dec segfaults when varcache *is* enabled... was this actually fixed, or is it that maybe I have a rare setup where the segfault occurs?