Skip to content

Commit d669f3e

Browse files
committed
Disabling error logging when analyzing classes
1 parent c2914a4 commit d669f3e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/direct/analyze_includes_2.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
}
2222

2323
ini_set('display_errors', 1);
24+
2425
// Add E_ERROR to error reporting if it is not already set
2526
error_reporting(E_ERROR | error_reporting());
2627

@@ -62,16 +63,21 @@
6263
6364
$componentsList = array();
6465
*/
66+
67+
$logErrors = ini_get('log_errors');
68+
6569
echo "FDSFZEREZ_STARTUP\n";
6670
if (is_array($classMap)) {
6771
foreach ($classMap as $className => $fileName) {
6872
echo "X4EVDX4SEVX5_BEFOREINCLUDE\n";
6973
echo $className."\n";
7074

75+
ini_set('log_errors', 0);
7176
if (!class_exists($className)) {
7277
echo "Error. Could not load class '".$className."' from file '".$fileName."'. This is probably an autoloader issue.
7378
Please check that your class respects PSR-0 or PSR-4 naming standards";
7479
}
80+
ini_set('log_errors', $logErrors);
7581

7682
// If we manage to get here, there has been no error loading $className. Youhou, let's output an encoded "OK"
7783
echo "DSQRZREZRZER__AFTERINCLUDE\n";

0 commit comments

Comments
 (0)