xref: /PHP-7.3/Zend/tests/bug24773.phpt (revision e97d5fab)
1--TEST--
2Bug #24773 (unset() of integers treated as arrays causes a crash)
3--FILE--
4<?php
5	$array = 'test';
6	unset($array["lvl1"]["lvl2"]["b"]);
7?>
8--EXPECTF--
9Fatal error: Uncaught Error: Cannot use string offset as an array in %s:%d
10Stack trace:
11#0 {main}
12  thrown in %s on line %d
13