8000 Merge branch '2.7' into 2.8 · enumag/symfony@456b09c · GitHub
[go: up one dir, main page]

Skip to content

Commit 456b09c

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: Revert "minor symfony#20011 Use UUID for error codes for Form validator. (Koc)" Use UUID for error codes for Form validator. Fixed regression when exception message swallowed when logging it. [HttpFoundation] Enable memcached tests with the latest memcached extension
2 parents cd1ec11 + bb51ed0 commit 456b09c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ protected function setUp()
3737

3838
parent::setUp();
3939

40-
if (version_compare(phpversion('memcached'), '2.2.0', '>=')) {
41-
$this->markTestSkipped('Tests can only be run with memcached extension 2.1.0 or lower');
40+
if (version_compare(phpversion('memcached'), '2.2.0', '>=') && version_compare(phpversion('memcached'), '3.0.0b1', '<')) {
41+
$this->markTestSkipped('Tests can only be run with memcached extension 2.1.0 or lower, or 3.0.0b1 or higher');
4242
}
4343

4444
$this->memcached = $this->getMock('Memcached');

src/Symfony/Component/HttpKernel/DataCollector/LoggerDataCollector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ private function sanitizeContext($context)
168168
}
169169

170170
if (is_object($context)) {
171+
if ($context instanceof \Exception) {
172+
return sprintf('Exception(%s): %s', get_class($context), $context->getMessage());
173+
}
174+
171175
return sprintf('Object(%s)', get_class($context));
172176
}
173177

0 commit comments

Comments
 (0)
0