mirror of
https://github.com/php/php-src.git
synced 2024-10-01 23:06:11 +00:00
17 lines
287 B
PHP
17 lines
287 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 %s, expecting %s in %sbug51709_2.php on line %d
|