--TEST-- Bug #71841 (EG(error_zval) is not handled well) --FILE-- e.=0); @var_dump(++$z->x); @var_dump($z->y++); $y = array(PHP_INT_MAX => 0); try { var_dump($y[] .= 0); } catch (Error $e) { echo $e->getMessage(), "\n"; } try { var_dump(++$y[]); } catch (Error $e) { echo $e->getMessage(), "\n"; } try { var_dump($y[]++); } catch (Error $e) { echo $e->getMessage(), "\n"; } ?> --EXPECT-- NULL NULL NULL Cannot add element to the array as the next element is already occupied Cannot add element to the array as the next element is already occupied Cannot add element to the array as the next element is already occupied