xref: /PHP-8.4/Zend/tests/bug64578.phpt (revision 7aacc705)
1--TEST--
2Bug #64578 (debug_backtrace in set_error_handler corrupts zend heap: segfault)
3--FILE--
4<?php
5
6set_error_handler(function($no, $err) { var_dump($err); });
7
8function x($s) { $s['2a'] = 1; };
9$y = '1';
10x($y);
11print_r($y);
12?>
13--EXPECT--
14string(26) "Illegal string offset "2a""
151
16