source: src/router/php7/Zend/tests/assert/indirect_var_access_misoptimization.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 3 months ago

update php

File size: 312 bytes
Line 
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--
18Notice: Object of class stdClass could not be converted to int in %s on line %d
19int(2)
Note: See TracBrowser for help on using the repository browser.