Skip to content

Make sure core module has number 0 - #12272

Merged
ndossche merged 3 commits into
php:masterfrom
ndossche:fix-regr-1
Sep 25, 2023
Merged

ndossche merged 3 commits into
php:masterfrom
ndossche:fix-regr-1

Conversation

@ndossche

Copy link
Copy Markdown
Member

Some places, possibly also outside PHP, assume the core extension has module number 0. After 8a812c3 this wasn't the case anymore as reported in [1]. Fix it by changing how the next module ID is computed.

[1] #12246 (comment)

Some places, possibly also outside PHP, assume the core extension has
module number 0. After 8a812c3 this wasn't the case anymore as
reported in [1]. Fix it by changing how the next module ID is computed.

[1] php#12246 (comment)
@shivammathur

Copy link
Copy Markdown
Member

@nielsdos Thanks for fixing it so quickly.

@bukka

bukka commented Sep 23, 2023

Copy link
Copy Markdown
Member

It would be good to add some test for this so it does not get broken again in the future...

Comment thread sapi/cli/tests/025.phpt Resolved
@ndossche
ndossche merged commit 9b6afd8 into php:master Sep 25, 2023
@sebastianbergmann

Copy link
Copy Markdown
Contributor

Thank you, @nielsdos!

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.

5 participants