Closed
Description
Running php PHP 5.3.3, Centos kernel 2.6.18-308.el5.028stab099.3 .
The following change breaks the preg_match function in my environment:
symfony/routing@2241c99
Seems like there has been some related issues on this topic before:
https://bugs.php.net/bug.php?id=46904&edit=3
Complete phpunit log:
PHPUnit 3.6.10 by Sebastian Bergmann.
Configuration read from /home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/phpunit.xml.dist
..................................SSSSSSSSSSSSSSSSSSSSSSSSSSSSS 63 / 131 ( 48%)
SSSSSS.........FEEE..E....EEEEE.E.E.....S...S.................. 126 / 131 ( 96%)
.....
Time: 0 seconds, Memory: 12.00Mb
There were 11 errors:
1) Symfony\Component\Routing\Tests\Matcher\Dumper\PhpMatcherDumperTest::testDump with data set #0 (Symfony\Component\Routing\RouteCollection, 'url_matcher1.php', array())
preg_match(): Compilation failed: unrecognized character after (?< at offset 9
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php:194
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php:149
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php:86
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php:71
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/Dumper/PhpMatcherDumperTest.php:45
/usr/bin/phpunit:46
2) Symfony\Component\Routing\Tests\Matcher\Dumper\PhpMatcherDumperTest::testDump with data set #1 (Symfony\Component\Routing\RouteCollection, 'url_matcher2.php', array('Symfony\\Component\\Routing\\Tests\\Fixtures\\RedirectableUrlMatcher'))
preg_match(): Compilation failed: unrecognized character after (?< at offset 9
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php:194
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php:149
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php:86
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php:71
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/Dumper/PhpMatcherDumperTest.php:45
/usr/bin/phpunit:46
3) Symfony\Component\Routing\Tests\Matcher\Dumper\PhpMatcherDumperTest::testDump with data set #2 (Symfony\Component\Routing\RouteCollection, 'url_matcher3.php', array())
preg_match(): Compilation failed: unrecognized character after (?< at offset 9
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php:194
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php:149
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php:86
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php:71
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/Dumper/PhpMatcherDumperTest.php:45
/usr/bin/phpunit:46
4) Symfony\Component\Routing\Tests\Matcher\TraceableUrlMatcherTest::test
preg_match(): Compilation failed: unrecognized character after (?< at offset 9
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/TraceableUrlMatcher.php:57
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php:90
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/TraceableUrlMatcher.php:37
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/TraceableUrlMatcherTest.php:31
/usr/bin/phpunit:46
5) Symfony\Component\Routing\Tests\Matcher\UrlMatcherTest::testMatch
preg_match(): Compilation failed: unrecognized character after (?< at offset 9
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php:132
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php:90
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php:82
/usr/bin/phpunit:46
6) Symfony\Component\Routing\Tests\Matcher\UrlMatcherTest::testMatchWithPrefixes
preg_match(): Compilation failed: unrecognized character after (?< at offset 9
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php:132
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php:118
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php:118
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php:90
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php:135
/usr/bin/phpunit:46
7) Symfony\Component\Routing\Tests\Matcher\UrlMatcherTest::testMatchWithDynamicPrefix
preg_match(): Compilation failed: unrecognized character after (?< at offset 5
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php:132
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php:118
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php:118
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php:90
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php:150
/usr/bin/phpunit:46
8) Symfony\Component\Routing\Tests\Matcher\UrlMatcherTest::testMatchNonAlpha
preg_match(): Compilation failed: unrecognized character after (?< at offset 5
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php:132
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php:90
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php:160
/usr/bin/phpunit:46
9) Symfony\Component\Routing\Tests\Matcher\UrlMatcherTest::testMatchWithDotMetacharacterInRequirements
preg_match(): Compilation failed: unrecognized character after (?< at offset 5
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php:132
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php:90
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php:170
/usr/bin/phpunit:46
10) Symfony\Component\Routing\Tests\Matcher\UrlMatcherTest::testMatchRegression
preg_match(): Compilation failed: unrecognized character after (?< at offset 9
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php:132
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php:90
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php:197
/usr/bin/phpunit:46
11) Symfony\Component\Routing\Tests\Matcher\UrlMatcherTest::testDecodeOnce
preg_match(): Compilation failed: unrecognized character after (?< at offset 9
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php:132
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Matcher/UrlMatcher.php:90
/home/even/callmanager/vendor/symfony/routing/Symfony/Component/Routing/Tests/Matcher/UrlMatcherTest.php:226
/usr/bin/phpunit:46
--
There was 1 failure:
1) Symfony\Component\Routing\Tests\Matcher\Dumper\PhpMatcherDumperTest::testDumpWhenSchemeIsUsedWithoutAProperDumper
Failed asserting that exception of type "PHPUnit_Framework_Error_Warning" matches expected exception "\LogicException".
/usr/bin/phpunit:46
FAILURES!
Tests: 131, Assertions: 163, Failures: 1, Errors: 11, Skipped: 37.
Metadata
Metadata
Assignees
Labels
No labels