1--TEST--
2Crash when function parameter modified via reference
3--FILE--
4<?php
5function usercompare($a,$b) {
6  unset($GLOBALS['my_var'][2]);
7  return 0;
8}
9$my_var = array(1 => "entry_1",
102 => "entry_2",
113 => "entry_3",
124 => "entry_4",
135 => "entry_5");
14usort($my_var, "usercompare");
15
16echo "Done.\n";
17?>
18--EXPECTF--
19
20Warning: usort(): Array was modified by the user comparison function in %s on line %d
21Done.
22