1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/tests/classes/constants_error_007.phpt

16 lines
322 B
PHP

--TEST--
Basic class support - attempting to create a reference to a class constant
--FILE--
<?php
class aclass
{
const myConst = "hello";
}
echo "\nAttempting to create a reference to a class constant - should be parse error.\n";
$a = &aclass::myConst;
?>
--EXPECTF--
Parse error: %s in %s on line %d