xref: /PHP-7.3/Zend/tests/bug71841.phpt (revision 5546f8be)
1--TEST--
2Bug #71841 (EG(error_zval) is not handled well)
3--INI--
4error_reporting=0
5--FILE--
6<?php
7$z = unserialize('O:1:"A":0:{}');
8var_dump($z->e.=0);
9var_dump(++$z->x);
10var_dump($z->y++);
11
12$y = array(PHP_INT_MAX => 0);
13var_dump($y[] .= 0);
14var_dump(++$y[]);
15var_dump($y[]++);
16?>
17--EXPECT--
18NULL
19NULL
20NULL
21NULL
22NULL
23NULL
24