mirror of
https://github.com/php/php-src.git
synced 2026-03-26 09:12:14 +01:00
Added test case for bug #26696.
This commit is contained in:
17
Zend/tests/bug26696.phpt
Executable file
17
Zend/tests/bug26696.phpt
Executable file
@@ -0,0 +1,17 @@
|
||||
--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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
--EXPECT--
|
||||
?
|
||||
Reference in New Issue
Block a user