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