Martin Lütken writes:
> I have my own build of PHP 5.3.8 with thread safe enabled ( meaning
> I compile the SWIG PHP module with #define ZTS 1).
> I can make the problem go away by adding this to the phprun.swg
> #ifdef ZTS
> void*** tsrm_ls;
A better fix would probably just be to add this to the start of SWIG_FAIL()
(essentially handle it as we do in SWIG_ResetError()):
But I don't have a ZTS build of PHP to test this change with - could you
check if this fixes the problem?