php-src/Zend/tests/bug26801.phpt
Marcus Boerger 780b420797 Add new test
2004-01-05 22:17:14 +00:00

23 lines
206 B
PHP
Executable File

--TEST--
Bug #26801 (switch ($a{0}) crash)
--FILE--
<?php
$a = '11';
$b = $a{0};
switch ($b) {
case '-':
break;
}
$a = '22';
switch ($a{0}) {
case '-':
break;
}
?>
===DONE===
--EXPECT--
===DONE===