mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
7aacc705d0
Closes GH-5958
16 lines
285 B
PHP
16 lines
285 B
PHP
--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['2a'] = 1; };
|
|
$y = '1';
|
|
x($y);
|
|
print_r($y);
|
|
?>
|
|
--EXPECT--
|
|
string(26) "Illegal string offset "2a""
|
|
1
|