Shouldn't it be `RETVAL_NULL()`? The macro has been defined for quite a while (see https://github.com/php/php-src/commit/bcddfd474a0db1ac4c440930ac74f3ed6626a5a2).