summaryrefslogtreecommitdiff
path: root/ext/opcache/tests/block_pass_001.phpt
blob: c024b81ce8020a2c150c05490fc56d0d594e4947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--TEST--
Block pass: Bugs in BOOL/QM_ASSIGN elision
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
(bool) (true ? $x : $y);
(bool) (true ? new stdClass : null);
(bool) new stdClass;
?>
--EXPECTF--
Notice: Undefined variable: x in %s on line %d