You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownew \RuntimeException(sprintf('Trying to autoload a class with an invalid name "%s". Be careful that the namespace separator is "\" in PHP, not "/".', $class));
// make sure the ContextErrorException class is loaded (https://bugs.php.net/bug.php?id=65322)
145
-
if (!class_exists('Symfony\Component\Debug\Exception\ContextErrorException')) {
// we must stop the PHP script execution, as the exception has
164
170
// already been dealt with, so, let's throw an exception that
165
171
// will be caught by a dummy exception handler
@@ -179,13 +185,61 @@ function ($row) {
179
185
returnfalse;
180
186
}
181
187
188
+
/**
189
+
* Configure the error handler for delayed handling.
190
+
* Ensures also that non-catchable fatal errors are never silenced.
191
+
*
192
+
* As shown by http://bugs.php.net/42098 and http://bugs.php.net/60724
193
+
* PHP has a compile stage where it behaves unusually. To workaround it,
194
+
* we plug an error handler that only stacks errors for later.
195
+
*
196
+
* The most important feature of this is to prevent
0 commit comments