mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
14 lines
187 B
PHP
Executable File
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
|