mirror of
https://github.com/php/php-src.git
synced 2024-09-29 05:46:06 +00:00
12 lines
203 B
PHP
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
|