1--TEST--
2Misoptimization when variable is modified by assert()
3--INI--
4zend.assertions=1
5--FILE--
6<?php
7
8function test() {
9    $i = 0;
10    assert('$i = new stdClass');
11    $i += 1;
12    var_dump($i);
13}
14test();
15
16?>
17--EXPECTF--
18Deprecated: assert(): Calling assert() with a string argument is deprecated in %s on line %d
19
20Notice: Object of class stdClass could not be converted to int in %s on line %d
21int(2)
22