File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests / bug26281.phpt
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Tue Feb 21 23:47:52 2012 UTC (12 years, 7 months ago) by misho
CVS tags: MAIN, HEAD
Initial revision

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

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>