1
0
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:
Ilia Alshanetsky
2003-12-30 00:23:28 +00:00
parent 2fc7a07e62
commit f0fa1781ee

17
Zend/tests/bug26696.phpt Executable file
View 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--
?