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