xref: /PHP-8.2/ext/opcache/tests/opt/sccp_033.phpt (revision e9f783fc)
1--TEST--
2SCCP: Warning during evaluation of function
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=-1
7--EXTENSIONS--
8opcache
9--FILE--
10<?php
11
12function test() {
13    $array = ["foo", []];
14    return implode(",", $array);
15}
16
17echo "Before\n";
18var_dump(test());
19echo "After\n";
20
21?>
22--EXPECTF--
23Before
24
25Warning: Array to string conversion in %s on line %d
26string(9) "foo,Array"
27After
28