Skip to content

Make parenthesized expressions advance the limit count on preg_split #2860

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 3 commits into from

Conversation

tml
Copy link
Contributor

@tml tml commented Oct 18, 2017

Perhaps the existing behaviour is preferred; if so, the documentation should make this more clear. As I view it, I think counting the parenthesized expressions feels like the right thing to do.

@Enelar
Copy link

Enelar commented Oct 18, 2017

@staabm
Copy link
Contributor

staabm commented Oct 18, 2017

you should add a unit test which reproduces the issue this change is fixing

@tml
Copy link
Contributor Author

tml commented Oct 18, 2017 via email

@tml
Copy link
Contributor Author

tml commented Oct 23, 2017

@krakjoe I don't know how to make the Appveyor builds run, any help there?

@krakjoe
Copy link
Member

krakjoe commented Oct 23, 2017

@tml av is almost a total mystery to me ...

@weltling what's this about a missing key ?

@weltling
Copy link
Contributor

@krakjoe it seems some AppVeyor issue with the cache. I've posted to the existing ticket a day ago http://help.appveyor.com/discussions/problems/8572-cache-is-broken . I'll do some experiments yet, that might fix it. Will check with them further, anyway.

Thanks.

@tml
Copy link
Contributor Author

tml commented Oct 23, 2017

Thanks. Can we remove the waiting on author tag?

@weltling
Copy link
Contributor

@tml I've disabled the AppVeyor cache, that's the solution for now. If you pull new from the dev branch, it'll fetch the new .appveyor.yml.

Thanks.

@nikic
Copy link
Member

nikic commented Oct 23, 2017

The logic here does not look right to me. E.g. if you only have NO_EMPTY but not DELIM_CAPTURE, this is still going to count empty matches, even though they won't be returned, right?

@krakjoe
Copy link
Member

krakjoe commented May 10, 2021

This appears to have been rejected.

@krakjoe krakjoe closed this May 10, 2021
@tml
Copy link
Contributor Author

tml commented May 17, 2021

No, it was merged in commit c19d519. :)

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.

6 participants