php-src/Zend/tests/bug26696.phpt
Marcus Boerger db86475367 Update test
2004-01-25 13:19:16 +00:00

22 lines
301 B
PHP
Executable File

--TEST--
Bug #26696 (crash in switch() when string index is used)
--FILE--
<?php
$str = 'asdd/?';
$len = strlen($str);
for ($i = 0; $i < $len; $i++) {
switch ($str[$i]) {
case '?':
echo "?+\n";
break;
default:
echo $str[$i].'-';
break;
}
}
?>
===DONE===
--EXPECT--
a-s-d-d-/-?+
===DONE===