ID: 50720 Updated by: [email protected] Reported By: andrew at coolboxcreative dot com -Status: Closed +Status: Bogus Bug Type: Regexps related Operating System: Linux PHP Version: 5.2.12
Previous Comments: ------------------------------------------------------------------------ [2010-01-11 17:58:48] andrew at coolboxcreative dot com The PCRE library is indeed an older version, so presume bug is down to that ------------------------------------------------------------------------ [2010-01-11 16:39:14] [email protected] 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
