xref: /PHP-5.5/Zend/tests/bug64578.phpt (revision 4f2acd8c)
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['a'] = 1; };
9$y = '1';
10x($y);
11print_r($y);
12--EXPECTF--
13string(25) "Illegal string offset 'a'"
141
15