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