|
|
|
@ -164,6 +164,7 @@ class CompilerBase extends \PhpAot\Core\Translator |
|
|
|
protected string $ldflags = ''; |
|
|
|
protected string $ldflags = ''; |
|
|
|
protected int $floatPrecision = 17; |
|
|
|
protected int $floatPrecision = 17; |
|
|
|
protected bool $debugInfo = true; |
|
|
|
protected bool $debugInfo = true; |
|
|
|
|
|
|
|
protected bool $printBacktraceOnError = false; |
|
|
|
protected bool $noLiteralStrings = false; |
|
|
|
protected bool $noLiteralStrings = false; |
|
|
|
protected string $file; |
|
|
|
protected string $file; |
|
|
|
protected string $dir; |
|
|
|
protected string $dir; |
|
|
|
@ -2237,7 +2238,9 @@ class CompilerBase extends \PhpAot\Core\Translator |
|
|
|
throw new TestError($msg); |
|
|
|
throw new TestError($msg); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$this->climate->red("Fatal error: {$msg}"); |
|
|
|
$this->climate->red("Fatal error: {$msg}"); |
|
|
|
debug_print_backtrace(); |
|
|
|
if ($this->printBacktraceOnError) { |
|
|
|
|
|
|
|
debug_print_backtrace(); |
|
|
|
|
|
|
|
} |
|
|
|
exit(255); |
|
|
|
exit(255); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|