php-src/ext/spl/tests/ArrayObject_illegal_offset_leak.phpt
2016-02-24 17:39:16 +01:00

12 lines
203 B
PHP

--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