mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
f66f55edc5
[DOC]
27 lines
462 B
PHP
27 lines
462 B
PHP
--TEST--
|
|
jump 08: goto inside switch in constructor
|
|
--FILE--
|
|
<?php
|
|
class foobar {
|
|
public function __construct() {
|
|
switch (1) {
|
|
default:
|
|
goto b;
|
|
a:
|
|
print "ok!\n";
|
|
break;
|
|
b:
|
|
print "ok!\n";
|
|
goto a;
|
|
}
|
|
print "ok!\n";
|
|
}
|
|
}
|
|
|
|
new foobar;
|
|
?>
|
|
--EXPECT--
|
|
ok!
|
|
ok!
|
|
ok!
|