xref: /PHP-7.2/tests/lang/bug29893.phpt (revision 17ccbeec)
1--TEST--
2Bug #29893 (segfault when using array as index)
3--FILE--
4<?php
5$base = 50;
6$base[$base] -= 0;
7?>
8===DONE===
9--EXPECTF--
10Warning: Cannot use a scalar value as an array in %sbug29893.php on line %d
11===DONE===
12