xref: /PHP-8.1/Zend/tests/exception_024.phpt (revision 07db6415)
1--TEST--
2zend.exception_string_param_max_len ini setting
3--INI--
4zend.exception_string_param_max_len = 23
5--FILE--
6<?php
7
8function main($arg) {
9    throw new Exception();
10}
11main('123456789012345678901234567890');
12
13?>
14--EXPECTF--
15Fatal error: Uncaught Exception in %s:%d
16Stack trace:
17#0 %s(%d): main('12345678901234567890123...')
18#1 {main}
19  thrown in %s on line %d
20