Adding TSRMLS_FETCH() to all places where it's required.