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

--TEST--
Bug #44913 (Segfault when using return in combination with nested loops and continue 2)
--FILE--
<?php
function something() {
        foreach(array(1, 2) as $value) {
                for($i = 0; $i < 1; $i++) {
                        continue 2;
                }
                return;
        }
}
something();
echo "ok\n";
?>
--EXPECT--
ok

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