1--TEST-- 2Bug #64578 (debug_backtrace in set_error_handler corrupts zend heap: segfault) 3--FILE-- 4<?php 5function x($s) { 6 $resource = fopen("php://input", "r"); 7 $s[$resource] = '2'; 8} 9$y = "1"; 10x($y); 11var_dump($y); 12?> 13--EXPECTF-- 14Warning: Illegal offset type in %sbug64578.php on line %d 15string(1) "1" 16