source: src/router/php7/ext/opcache/tests/bug74152.phpt @ 31874

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

update php

File size: 349 bytes
Line 
1--TEST--
2Bug #74152 (if statement says true to a null variable)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--SKIPIF--
8<?php require_once('skipif.inc'); ?>
9--FILE--
10<?php
11
12$foo = 'foo';
13
14$bar = null;
15
16switch ($foo) {
17default:
18case 'foo':
19        if ($bar) {
20                echo 'true';
21        } else {
22                echo 'false';
23        }
24}
25?>
26--EXPECT--
27false
Note: See TracBrowser for help on using the repository browser.