File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -160,9 +160,13 @@ protected function getScript($request)
160
160
$ profilerCode = '$kernel->getContainer()->get( \'profiler \')->enable(); ' ;
161
161
}
162
162
163
+ $ errorReporting = error_reporting ();
164
+
163
165
$ code = <<<EOF
164
166
<?php
165
167
168
+ error_reporting( $ errorReporting);
169
+
166
170
if (' $ autoloader') {
167
171
require_once ' $ autoloader';
168
172
}
Original file line number Diff line number Diff line change @@ -102,10 +102,13 @@ protected function getScript($request)
102
102
$ r = new \ReflectionClass ('\\Symfony \\Component \\ClassLoader \\ClassLoader ' );
103
103
$ requirePath = str_replace ("' " , "\\' " , $ r ->getFileName ());
104
104
$ symfonyPath = str_replace ("' " , "\\' " , realpath (__DIR__ .'/../../.. ' ));
105
+ $ errorReporting = error_reporting ();
105
106
106
107
$ code = <<<EOF
107
108
<?php
108
109
110
+ error_reporting( $ errorReporting);
111
+
109
112
require_once ' $ requirePath';
110
113
111
114
\$loader = new Symfony\Component\ClassLoader\ClassLoader();
You can’t perform that action at this time.
0 commit comments