1--TEST-- 2ArrayObject illegal offset 3--FILE-- 4<?php 5 6$ao = new ArrayObject([1, 2, 3]); 7try { 8 var_dump($ao[[]]); 9} catch (TypeError $e) { 10 echo $e->getMessage(), "\n"; 11} 12try { 13 $ao[[]] = new stdClass; 14} catch (TypeError $e) { 15 echo $e->getMessage(), "\n"; 16} 17try { 18 $ref =& $ao[[]]; 19} catch (TypeError $e) { 20 echo $e->getMessage(), "\n"; 21} 22try { 23 var_dump(isset($ao[[]])); 24} catch (TypeError $e) { 25 echo $e->getMessage(), "\n"; 26} 27try { 28 unset($ao[[]]); 29} catch (TypeError $e) { 30 echo $e->getMessage(), "\n"; 31} 32 33?> 34--EXPECT-- 35Cannot access offset of type array on ArrayObject 36Cannot access offset of type array on ArrayObject 37Cannot access offset of type array on ArrayObject 38Cannot access offset of type array in isset or empty 39Cannot unset offset of type array on ArrayObject 40