php-src/Zend/tests/bug26801.phpt

23 lines
206 B
Plaintext
Raw Normal View History

2004-01-06 06:17:14 +08:00
--TEST--
Bug #26801 (switch ($a{0}) crash)
--FILE--
<?php
$a = '11';
2005-11-17 00:57:27 +08:00
$b = $a[0];
2004-01-06 06:17:14 +08:00
switch ($b) {
case '-':
break;
}
$a = '22';
2005-11-17 00:57:27 +08:00
switch ($a[0]) {
2004-01-06 06:17:14 +08:00
case '-':
break;
}
?>
===DONE===
--EXPECT--
===DONE===