php-src/Zend/tests/bug26281.phpt
2005-11-16 16:57:27 +00:00

14 lines
187 B
PHP
Executable File

--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