dis-bench / src /php /php-src /Zend /tests /grammar /regression_005.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
257 Bytes
--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 token "return", expecting identifier in %s on line %d