mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
15 lines
270 B
PHP
15 lines
270 B
PHP
--TEST--
|
|
Test possible constant naming regression on procedural scope
|
|
--FILE--
|
|
<?php
|
|
|
|
class Obj
|
|
{
|
|
const return = 'yep';
|
|
}
|
|
|
|
const return = 'nope';
|
|
|
|
--EXPECTF--
|
|
Parse error: syntax error, unexpected 'return' (T_RETURN), expecting identifier (T_STRING) in %s on line 8
|