Skip to content

Fixed bug #79188 #5126

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
Closed

Fixed bug #79188 #5126

wants to merge 1 commit into from

Conversation

nikic
Copy link
Member

@nikic nikic commented Jan 29, 2020

Fix for https://bugs.php.net/bug.php?id=79188.

We distinguish the "last end offset" and the "start offset". These are only going to differ for the "empty match" special case, in which case "last end offset" will be one unicode offset before the "start offset".

Copying of that extra character will now fall to the general code for copying the string between the last end offset and the start of the current match, which will also manage the allocation size correctly.

@nikic
Copy link
Member Author

nikic commented Feb 5, 2020

Merged as 13bfa9f.

@nikic nikic closed this Feb 5, 2020
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.

1 participant