Skip to content
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

Update OpenBSD glob implementation for Windows #16948

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

NattyNarwhal
Copy link
Member

We're considering making this used as a glob implementation on POSIX as well, but first, we should rebase it from the latest version of OpenBSD.

This also adds a new internal header (charclass.h) for glob.

See conversation in GH-15564.

@NattyNarwhal
Copy link
Member Author

MSVC error there is misleading, it's missing reallocarray (and defaults to int(void) I assume). Would need to bring that over, adapt it to use realloc (safely avoiding overflow with args), or convert it ZendMM which has eqivalents anyways.

From OpenBSD, dependency of newer versions of glob.
We're considering making this used as a glob implementation on POSIX as
well, but first, we should rebase it from the latest version of OpenBSD.

This also adds a new internal header (charclass.h) for glob.

See conversation in phpGH-15564.
@cmb69
Copy link
Member

cmb69 commented Nov 28, 2024

MSVC error there is misleading, it's missing reallocarray (and defaults to int(void) I assume).

See #16986.

or convert it ZendMM which has eqivalents anyways.

Might be best, unless that would be a PITA when pulling in further updates.

@NattyNarwhal
Copy link
Member Author

For now I imported reallocarray. I don't think glob changes much, so future changes from OpenBSD should be easy to reconcile even if we do convert to ZendMM in the future. Now, to figure out what's broken...

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.

2 participants