mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
14 lines
220 B
PHP
14 lines
220 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
|