Skip to content

Ref #77388 - disallow passing BAD_ESCAPE_IS_LITERAL, esp by default#4430

Closed
SjonHortensius wants to merge 2 commits into
php:masterfrom
SjonHortensius:pcre-remove-bad-escape-literal
Closed

Ref #77388 - disallow passing BAD_ESCAPE_IS_LITERAL, esp by default#4430
SjonHortensius wants to merge 2 commits into
php:masterfrom
SjonHortensius:pcre-remove-bad-escape-literal

Conversation

@SjonHortensius

Copy link
Copy Markdown
Contributor

this option is considered dangerous and unwanted by the author of pcre:

Absolutely! I'm a bit horrified to learn that somebody set it as a default. It is very much a use-with-care dangerous feature. I hope the PHP developers take note in due course.

While this is a B/C change - it is more likely to expose (existing) problems that can quickly be fixed by fixing the regexp. There were no objections against removing it on php-internals


this PR is a copy of #4429 - but using a proper feature-branch targeting master instead of PHP-7.4

this option is considered dangerous and unwanted
Comment thread UPGRADING Outdated
@nikic nikic added this to the PHP 8.0 milestone Jul 18, 2019
@SjonHortensius SjonHortensius force-pushed the pcre-remove-bad-escape-literal branch from 3b91c96 to 5e9ba51 Compare July 18, 2019 08:43
@php-pulls php-pulls closed this in 05752d3 Jul 18, 2019
@SjonHortensius SjonHortensius deleted the pcre-remove-bad-escape-literal branch July 18, 2019 09:00
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.

2 participants