Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 713a3fc58c
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (25 sloc) 0.353 kb
--TEST--
Bug #26696 (string index in a switch() crashes with multiple matches)
--FILE--
<?php
$str = 'asdd/?';
$len = strlen($str);
for ($i = 0; $i < $len; $i++) {
switch ($str[$i]) {
case '?':
echo "OK\n";
break;
}
}
$str = '*';
switch ($str[0]) {
case '*';
echo "OK\n";
break;
default:
echo 'Default RAN!';
}
?>
--EXPECT--
OK
OK
Jump to Line
Something went wrong with that request. Please try again.