Skip to content

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