xref: /PHP-7.4/Zend/tests/bug26281.phpt (revision 610c7fbe)
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