add TSRMLS_FETCH at top of blocks that need tsrm_ls