1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 01:32:22 +01:00
Files
archived-php-src/Zend/tests/bug26801.phpt
Ilia Alshanetsky da0a76c561 {} to [] test fixes
2005-11-16 16:57:27 +00:00

23 lines
206 B
PHP
Executable File

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