Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
what it says. this is valid syntax since 5.2.2.
Search for ?P< in core, where you find it replace it with ?' and the matching > with '. I think there are four. Leave Symfony alone. That's all.
Proove: (http://ca2.php.net/manual/en/regexp.reference.subpatterns.php)
It is possible to name a subpattern using the syntax (?Ppattern). This subpattern will then be indexed in the matches array by its normal numeric position and also by name. PHP 5.2.2 introduced two alternative syntaxes (?pattern) and (?'name'pattern).
Comment | File | Size | Author |
---|---|---|---|
#6 | 1890536-6.patch | 2.49 KB | jibran |
#6 | interdiff.txt | 1.1 KB | jibran |
#2 | 1890536.patch | 2.38 KB | chx |
Comments
Comment #1
chx CreditAttribution: chx commentedNow, this is a novice task if I ever saw one.
Comment #1.0
chx CreditAttribution: chx commentedUpdated issue summary.
Comment #2
chx CreditAttribution: chx commentedEh, the quote is a bad idea because the strings are in quotes so let's use the ?<> syntax instead. Less nice but still good. Also makes the change easily scriptable.
Comment #4
jibran#2: 1890536.patch queued for re-testing.
Comment #6
jibranReroll.
Comment #6.0
jibranUpdated issue summary.
Comment #7
dawehnerChanges look fine and the issue summary links to the docu of PHP.
Comment #8
alexpottCommitted 92a674e and pushed to 8.x. Thanks!
Comment #9.0
(not verified) CreditAttribution: commentedadded quote