Hi,
After JIT+ZTS related discussion with Joe and Bob, and some related analyzes. I came to more or less formed design idea and described it at https://wiki.php.net/zts-improvement This is not an RFC and I'm not sure, if I like to implement TSRM changes myself now. Comments are welcome. Thanks. Dmitry.