Annotation of embedaddon/php/Zend/tests/bug26696.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: Bug #26696 (crash in switch() when string index is used)
! 3: --FILE--
! 4: <?php
! 5: $str = 'asdd/?';
! 6: $len = strlen($str);
! 7: for ($i = 0; $i < $len; $i++) {
! 8: switch ($str[$i]) {
! 9: case '?':
! 10: echo "?+\n";
! 11: break;
! 12: default:
! 13: echo $str[$i].'-';
! 14: break;
! 15: }
! 16: }
! 17:
! 18: ?>
! 19: ===DONE===
! 20: --EXPECT--
! 21: a-s-d-d-/-?+
! 22: ===DONE===
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>