1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00
Files
archived-php-src/ext/opcache/tests/block_pass_001.phpt
T
Máté Kocsis 36935e42ea Improve undefined variable error messages
Closes GH-5312
2020-03-31 13:02:32 +02:00

13 lines
261 B
PHP

--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--
Warning: Undefined variable $x in %s on line %d