summaryrefslogtreecommitdiff
path: root/Zend/tests/bug64578.phpt
blob: b4018e96a2fe55e7a2ed391c095d0f8b7b5bfc79 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--TEST--
Bug #64578 (debug_backtrace in set_error_handler corrupts zend heap: segfault)
--FILE--
<?php

set_error_handler(function($no, $err) { var_dump($err); });

function x($s) { $s['a'] = 1; };
$y = '1';
x($y);
print_r($y);
--EXPECT--
string(25) "Illegal string offset 'a'"
1