kriswallsmith/assetic — pull request #284 by sylvainfilteau (2012-08-18 15:45:01+00:00)
Title: Rewrite the regex named group using the old form

PHP 5.2.2 introduced named groups defined as (?...) or (?'name'...) like
what it is used in the Assetic\Filter\BaseCssFilter. Through my research, I
found that this was enabled by the version 7 of PCRE (see
http://www.pcre.org/changelog.txt version 7.0 line 34). You can see what PCRE
version is used in each version of PHP here :
http://www.php.net/manual/fr/pcre.installation.php

For a reason I do not fully understand, PHP in CentOS 5.8 was compiled with
version 6.6 of PCRE that do not support that new way of defining named groups.
You can know which version of PCRE PHP is using by executing that line :

php -r 'echo PCRE_VERSION;'

So to fix that problem, I modified the code to use the old way of defining
named group, using the uppercase P.