Skip to content
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

[PropertyAccess] Fixed compatibility with preg_match in PHP 7.2 #22707

Closed

Conversation

Majkl578
Copy link
Contributor

Q A
Branch? 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #22667
License MIT

Fix for compatibility with PCRE change in PHP 7.2.
preg_* will return null instead of empty string for unmatched patterns.
Broken in php/php-src#1303.

@xabbuh
Copy link
Member

xabbuh commented May 13, 2017

Can you add a test case covering this?

@scaytrase
Copy link
Contributor

Can we ensure there are no more place incompatible with this check? Failing property access was only an example, but the issue itself is more broad

@nicolas-grekas
Copy link
Member

nicolas-grekas commented May 13, 2017

Before committing this, we should raise the concern on php-internals. Comments on php-src PRs are kinda ignored. This BC break should be challenged.

@nicolas-grekas
Copy link
Member

See https://marc.info/?l=php-internals&m=149483149700910&w=2

@nicolas-grekas nicolas-grekas added this to the 2.7 milestone May 15, 2017
@nicolas-grekas
Copy link
Member

CLosing as this should be resolved soon in php-src master.

@Majkl578 Majkl578 deleted the PropertyAccess/pcre-php-7.2-compat branch January 11, 2018 05:10
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.

None yet

5 participants