From config.w32:
Note: ADD_EXTENSION_DEP() cannot be used to declare that we depend on the date and standard extensions. Assume that they're always enabled.
This limitation was removed in PHP 7.3, so we can add conditional calls to ADD_EXTENSION_DEP starting with that PHP version.