diff options
Diffstat (limited to 'Zend/tests/exception_024.phpt')
-rw-r--r-- | Zend/tests/exception_024.phpt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Zend/tests/exception_024.phpt b/Zend/tests/exception_024.phpt new file mode 100644 index 0000000000..67a2b87532 --- /dev/null +++ b/Zend/tests/exception_024.phpt @@ -0,0 +1,19 @@ +--TEST-- +zend.exception_string_param_max_len ini setting +--INI-- +zend.exception_string_param_max_len = 23 +--FILE-- +<?php + +function main($arg) { + throw new Exception(); +} +main('123456789012345678901234567890'); + +?> +--EXPECTF-- +Fatal error: Uncaught Exception in %s:%d +Stack trace: +#0 %s(%d): main('12345678901234567890123...') +#1 {main} + thrown in %s on line %d |