ID: 50720 User updated by: andrew at coolboxcreative dot com Reported By: andrew at coolboxcreative dot com -Status: Feedback +Status: Closed Bug Type: Regexps related Operating System: Linux PHP Version: 5.2.12 New Comment:
The PCRE library is indeed an older version, so presume bug is down to that Previous Comments: ------------------------------------------------------------------------ [2010-01-11 16:39:14] scott...@php.net Check your phpinfo for the version of the PCRE library, I'm guessing that the Redhat version is using an old copy from the system and not the bundled PHP version. ------------------------------------------------------------------------ [2010-01-11 16:33:37] andrew at coolboxcreative dot com Description: ------------ Named subpatterns are not working with the syntax ?<name> or ?'name', only working with ?P<name> The newer syntax's work with version 5.2.9-2 (on windows) and 5.2.11 (linux), but not version 5.2.12 (red hat) Reproduce code: --------------- http://www.coolboxcreative.com/demo/php_bug/source.txt Expected result: ---------------- id = classes = test_class id = div_two classes = another_class Actual result: -------------- nothing outputted nb. in the application I am using this in I get the following error: Compilation failed: unrecognized character after (?< at offset 7' in .... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=50720&edit=1