![]() ![]() | ![]() |
1.1 misho 1: --TEST-- 2: jump 08: goto inside switch in constructor 3: --FILE-- 4: <?php 5: class foobar { 6: public function __construct() { 7: switch (1) { 8: default: 9: goto b; 10: a: 11: print "ok!\n"; 12: break; 13: b: 14: print "ok!\n"; 15: goto a; 16: } 17: print "ok!\n"; 18: } 19: } 20: 21: new foobar; 22: ?> 23: --EXPECT-- 24: ok! 25: ok! 26: ok!