xref: /PHP-7.4/tests/output/bug74725.phpt (revision b59718bd)
1--TEST--
2Bug #74725: html_errors=1 breaks unhandled exceptions
3--FILE--
4<?php
5ini_set('display_errors', 1);
6ini_set('html_errors', 1);
7ini_set('default_charset', "Windows-1251");
8throw new Exception("\xF2\xE5\xF1\xF2");
9// Note to test reader: this file is in Windows-1251 (vim: `:e ++enc=cp1251`)
10?>
11--EXPECTF--
12<br />
13<b>Fatal error</b>:  Uncaught Exception: ���� in %s:5
14Stack trace:
15#0 {main}
16  thrown in <b>%s</b> on line <b>5</b><br />
17