[FrameworkBundle] forward error reporting level to insulated Client
This commit is contained in:
parent
ff52a9f928
commit
d82e062d17
@ -160,9 +160,13 @@ class Client extends BaseClient
|
|||||||
$profilerCode = '$kernel->getContainer()->get(\'profiler\')->enable();';
|
$profilerCode = '$kernel->getContainer()->get(\'profiler\')->enable();';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$errorReporting = error_reporting();
|
||||||
|
|
||||||
$code = <<<EOF
|
$code = <<<EOF
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
error_reporting($errorReporting);
|
||||||
|
|
||||||
if ('$autoloader') {
|
if ('$autoloader') {
|
||||||
require_once '$autoloader';
|
require_once '$autoloader';
|
||||||
}
|
}
|
||||||
|
@ -102,10 +102,13 @@ class Client extends BaseClient
|
|||||||
$r = new \ReflectionClass('\\Symfony\\Component\\ClassLoader\\ClassLoader');
|
$r = new \ReflectionClass('\\Symfony\\Component\\ClassLoader\\ClassLoader');
|
||||||
$requirePath = str_replace("'", "\\'", $r->getFileName());
|
$requirePath = str_replace("'", "\\'", $r->getFileName());
|
||||||
$symfonyPath = str_replace("'", "\\'", realpath(__DIR__.'/../../..'));
|
$symfonyPath = str_replace("'", "\\'", realpath(__DIR__.'/../../..'));
|
||||||
|
$errorReporting = error_reporting();
|
||||||
|
|
||||||
$code = <<<EOF
|
$code = <<<EOF
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
error_reporting($errorReporting);
|
||||||
|
|
||||||
require_once '$requirePath';
|
require_once '$requirePath';
|
||||||
|
|
||||||
\$loader = new Symfony\Component\ClassLoader\ClassLoader();
|
\$loader = new Symfony\Component\ClassLoader\ClassLoader();
|
||||||
|
Reference in New Issue
Block a user