xref: /PHP-7.2/Zend/tests/bug26801.phpt (revision 610c7fbe)
1--TEST--
2Bug #26801 (switch ($a{0}) crash)
3--FILE--
4<?php
5
6$a = '11';
7$b = $a[0];
8switch ($b) {
9	case '-':
10		break;
11}
12
13$a = '22';
14switch ($a[0]) {
15	case '-':
16		break;
17}
18
19?>
20===DONE===
21--EXPECT--
22===DONE===
23