Skip to content

Stop including php_pcre.h from spl_iterators.h #8290

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

Merged
merged 1 commit into from
Apr 8, 2022

Conversation

arnaud-lb
Copy link
Member

This fixes GH-7774.

spl_iterators.h was including php_pcre.h so that one object intern struct could reference a pcre_cache_entry. These object interns should not be public, so they can be moved out of the header file.

This change moves the object interns ouf of spl_iterators.h so that php_pcre.h doesn't need to be included from there.

@arnaud-lb arnaud-lb marked this pull request as ready for review April 1, 2022 16:20
This fixes phpGH-7774.

spl_iterators.h was including php_pcre.h so that one object intern struct could
reference a pcre_cache_entry. These object interns should not be public, so they
can be moved out of the header file.

This change moves the object interns ouf of spl_iterators.h so that php_pcre.h
doesn't need to be included from there.
@arnaud-lb arnaud-lb merged commit 72fb511 into php:master Apr 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

move reference to pcre.h out of spl_iterators.h
2 participants