php-src/Zend/tests/bug26281.phpt
2012-10-10 10:27:49 +08:00

14 lines
187 B
PHP

--TEST--
Bug #26281 (switch() crash when condition is a string offset)
--FILE--
<?php
$x = 'abc';
switch ($x[0]) {
case 'a':
echo "no crash\n";
break;
}
?>
--EXPECT--
no crash