mirror of
https://github.com/php/php-src.git
synced 2024-10-18 15:02:38 +00:00
23 lines
206 B
Plaintext
23 lines
206 B
Plaintext
|
--TEST--
|
||
|
Bug #26801 (switch ($a{0}) crash)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
$a = '11';
|
||
|
$b = $a{0};
|
||
|
switch ($b) {
|
||
|
case '-':
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
$a = '22';
|
||
|
switch ($a{0}) {
|
||
|
case '-':
|
||
|
break;
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
===DONE===
|
||
|
--EXPECT--
|
||
|
===DONE===
|