php-src/Zend/tests/duplicate_label_error.phpt
2014-09-23 00:57:00 +02:00

13 lines
152 B
PHP

--TEST--
Duplicate labels are not allowed
--FILE--
<?php
foo:
foo:
goto foo;
?>
--EXPECTF--
Fatal error: Label 'foo' already defined in %s on line %d