summaryrefslogtreecommitdiff
path: root/Zend/tests/bug26281.phpt
blob: e1888a88ddac480302930b6c05090d049eb0ee95 (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