Skip to content

Make parenthesized expressions advance the limit count on preg_split - #2860

Closed
tml wants to merge 3 commits into
php:masterfrom
tml:master
Closed

Make parenthesized expressions advance the limit count on preg_split#2860
tml wants to merge 3 commits into
php:masterfrom
tml:master

Conversation

@tml

@tml tml commented Oct 18, 2017

Copy link
Copy Markdown
Contributor

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

Enelar commented Oct 18, 2017

Copy link
Copy Markdown

@staabm

staabm commented Oct 18, 2017

Copy link
Copy Markdown
Contributor

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

@tml

tml commented Oct 18, 2017 via email

Copy link
Copy Markdown
Contributor Author

@tml

tml commented Oct 23, 2017

Copy link
Copy Markdown
Contributor Author

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

@krakjoe

krakjoe commented Oct 23, 2017

Copy link
Copy Markdown
Member

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

@weltling what's this about a missing key ?

@weltling

Copy link
Copy Markdown
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

tml commented Oct 23, 2017

Copy link
Copy Markdown
Contributor Author

Thanks. Can we remove the waiting on author tag?

@weltling

Copy link
Copy Markdown
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

nikic commented Oct 23, 2017

Copy link
Copy Markdown
Member

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

krakjoe commented May 10, 2021

Copy link
Copy Markdown
Member

This appears to have been rejected.

@krakjoe krakjoe closed this May 10, 2021
@tml

tml commented May 17, 2021

Copy link
Copy Markdown
Contributor Author

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