mirror of
https://github.com/php/php-src.git
synced 2026-03-26 17:22:15 +01:00
17 lines
298 B
PHP
17 lines
298 B
PHP
--TEST--
|
|
Bug #51709 (Can't use keywords as method names)
|
|
--FILE--
|
|
<?php
|
|
|
|
class foo {
|
|
static function goto() {
|
|
echo "1";
|
|
}
|
|
}
|
|
|
|
?>
|
|
===DONE===
|
|
<?php exit(0); ?>
|
|
--EXPECTF--
|
|
Parse error: syntax error, unexpected T_GOTO, expecting T_STRING in %s/bug51709_2.php on line %d
|