xref: /PHP-8.0/Zend/tests/bug26281.phpt (revision f8d79582)
1--TEST--
2Bug #26281 (switch() crash when condition is a string offset)
3--FILE--
4<?php
5    $x = 'abc';
6    switch ($x[0]) {
7        case 'a':
8            echo "no crash\n";
9            break;
10    }
11?>
12--EXPECT--
13no crash
14