AutoloadGenerator: Send error HTTP status on error
parent
70add1867c
commit
b83b186ac0
|
@ -734,7 +734,8 @@ EXT_CHECKS;
|
|||
|
||||
\$issues = array();
|
||||
${requiredPhp}${requiredExtensions}
|
||||
if (\$issues) {
|
||||
if (\$issues && !headers_sent()) {
|
||||
header('HTTP/1.1 500 Internal Server Error');
|
||||
echo 'Composer detected issues in your platform:' . "\\n\\n" . implode("\\n", \$issues) . "\\n\\n";
|
||||
exit(104);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue