diff options
Diffstat (limited to 'ext/opcache/tests/opt/sccp_033.phpt')
-rw-r--r-- | ext/opcache/tests/opt/sccp_033.phpt | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/ext/opcache/tests/opt/sccp_033.phpt b/ext/opcache/tests/opt/sccp_033.phpt new file mode 100644 index 0000000000..f3fbbb9c28 --- /dev/null +++ b/ext/opcache/tests/opt/sccp_033.phpt @@ -0,0 +1,27 @@ +--TEST-- +SCCP: Warning during evaluation of function +--INI-- +opcache.enable=1 +opcache.enable_cli=1 +opcache.optimization_level=-1 +--SKIPIF-- +<?php require_once('skipif.inc'); ?> +--FILE-- +<?php + +function test() { + $array = ["foo", []]; + return implode(",", $array); +} + +echo "Before\n"; +var_dump(test()); +echo "After\n"; + +?> +--EXPECTF-- +Before + +Warning: Array to string conversion in %s on line %d +string(9) "foo,Array" +After |