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

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

update php

File size: 368 bytes
Line 
1--TEST--
2The variable $php_errormsg shouldn't be optimized as it may be unpredictably modified
3--INI--
4track_errors=1
5--FILE--
6<?php
7
8function test() {
9    $php_errormsg = 1;
10    echo $undef;
11    var_dump($php_errormsg + 1);
12}
13test();
14
15?>
16--EXPECTF--
17Notice: Undefined variable: undef in %s on line %d
18
19Warning: A non-numeric value encountered in %s on line %d
20int(1)
Note: See TracBrowser for help on using the repository browser.