Skip to content

Commit fa872c8

Browse files
committed
bug #13081 [FrameworkBundle] forward error reporting level to insulated Client (nicolas-grekas)
This PR was merged into the 2.3 branch. Discussion ---------- [FrameworkBundle] forward error reporting level to insulated Client | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Especially if deprecation notices are silenced on the main php instance, we should also silence them in the insulated Client Commits ------- d82e062 [FrameworkBundle] forward error reporting level to insulated Client
2 parents c35fc32 + ed6a255 commit fa872c8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Client.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,13 @@ protected function getScript($request)
102102
$r = new \ReflectionClass('\\Symfony\\Component\\ClassLoader\\ClassLoader');
103103
$requirePath = str_replace("'", "\\'", $r->getFileName());
104104
$symfonyPath = str_replace("'", "\\'", realpath(__DIR__.'/../../..'));
105+
$errorReporting = error_reporting();
105106

106107
$code = <<<EOF
107108
<?php
108109
110+
error_reporting($errorReporting);
111+
109112
require_once '$requirePath';
110113
111114
\$loader = new Symfony\Component\ClassLoader\ClassLoader();

0 commit comments

Comments
 (0)