--TEST-- Using unset(), isset(), empty() with an illegal array offset throws --FILE-- getMessage(), "\n"; } try { isset($ary[[]]); } catch (Error $e) { echo $e->getMessage(), "\n"; } try { empty($ary[[]]); } catch (Error $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- Cannot unset offset of type array on array Cannot access offset of type array in isset or empty Cannot access offset of type array in isset or empty