We really should change this across the extension as TSRMLS_FETCH is slow. The original scope was to not support ZTS mode in the first place, so I never cared for it.