xref: /PHP-8.4/ext/opcache/tests/jit/gh12723-A.phpt (revision ed8b9018)
1--TEST--
2GH-12723: Function JIT emits "Uninitialized string offset" warning at the same time as invalid offset Error
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6--FILE--
7<?php
8
9$container = '';
10$dimension = [];
11
12try {
13    var_dump($container[$dimension]);
14} catch (\Throwable $e) {
15    echo $e->getMessage(), "\n";
16}
17
18?>
19--EXPECT--
20Cannot access offset of type array on string
21