AutoloadGenerator: Send error HTTP status on error

main
Jakub Bouček 4 years ago
parent 70add1867c
commit b83b186ac0
No known key found for this signature in database
GPG Key ID: 225FDC9C0BFAA273

@ -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…
Cancel
Save