1--TEST--
2Test ct eval of frameless function
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7opcache.opt_debug_level=0x20000
8zend_test.observer.enabled=0
9--EXTENSIONS--
10opcache
11--FILE--
12<?php
13echo substr('foo', 1, $foo ? 1 : 1);
14?>
15--EXPECTF--
16$_main:
17     ; (lines=3, args=0, vars=1, tmps=0)
18     ; (after optimizer)
19     ; %sct_eval_frameless_002.php:1-4
200000 CHECK_VAR CV0($foo)
210001 ECHO string("o")
220002 RETURN int(1)
23
24Warning: Undefined variable $foo in %s on line %d
25o
26