summaryrefslogtreecommitdiff
path: root/ext/spl/tests/ArrayObject_illegal_offset_leak.phpt
blob: 42c649db9f61596202333f141a2235dbc64ed880 (plain)
1
2
3
4
5
6
7
8
9
10
11
--TEST--
Assignments to illegal ArrayObject offsets shouldn't leak
--FILE--
<?php

$ao = new ArrayObject([1, 2, 3]);
$ao[[]] = new stdClass;

?>
--EXPECTF--
Warning: Illegal offset type in %s on line %d