Skip to content

ext/date: drop generic php_date_instantiate helper #18652

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

devnexen
Copy link
Member

No description provided.

Copy link
Member

@derickr derickr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't mind changing php_date_instantiate to object_init_ex here logically, but removing the php_date_instantiate API is not OK.

And because of that, I would then also argue that all these instantiations should go through the same API call to stay consistent (in case php_date_instantiate() needs to do more than just object_init_ex.

I would therefore oppose this change altogether.

object_init_ex(object, pce);
return object;
} /* }}} */

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can't just remove an exported API.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sense ok :)

@devnexen devnexen closed this May 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants