1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
archived-php-src/Zend/tests/bug26281.phpt
Ilia Alshanetsky da0a76c561 {} to [] test fixes
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