Files
Daniel Scherzer 886ee6d981 Zend/tests: organize some tests with sub directories (11) (#22731)
Add directories for tests relating to
- `break` statements
- functions with by-ref returns
- `class_exists()`
- dynamic properties
- error handlers
- error suppression with `@`
- `get_object_vars()`
- `highlight_string()` and `highlight_file()`
- interfaces
- `is_callable()`
- iterators
- shutdown functions
- streams

As well as organizing a couple of tests into existing sub directories along the
way

Work towards GH-15631
2026-09-30 15:52:59 +01:00

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