mirror of
https://github.com/php/php-src.git
synced 2026-10-29 02:07:35 +08:00
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
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
|