mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
20 lines
211 B
PHP
20 lines
211 B
PHP
--TEST--
|
|
jump 09: goto in declare statement
|
|
--FILE--
|
|
<?php
|
|
a: print "ok!\n";
|
|
goto c;
|
|
declare (ticks=1) {
|
|
b:
|
|
print "ok!\n";
|
|
exit;
|
|
}
|
|
c:
|
|
print "ok!\n";
|
|
goto b;
|
|
?>
|
|
--EXPECT--
|
|
ok!
|
|
ok!
|
|
ok!
|