8
0
Bifurcation 0

make CLI check compatible to PHP internal server

Cette révision appartient à :
Daniel Seifert 2021-11-29 10:07:56 +01:00
Parent 66ff1aa732
révision d835b64fe3
Signé par: DanielS
ID de la clé GPG: 8A7C4C6ED1915C6F
1 fichiers modifiés avec 1 ajouts et 1 suppressions

Voir le fichier

@ -304,7 +304,7 @@ abstract class pdfdocumentsGeneric extends Base implements genericInterface
if (ob_get_contents()) {
$oPdf->pdf->Error('Some data has already been output, can\'t send PDF file');
}
if (php_sapi_name() != 'cli') {
if (substr(php_sapi_name(), 0, 3) != 'cli') {
//We send to a browser
header('Content-Type: text/html');
if (headers_sent()) {