mirror of
https://github.com/php/php-src.git
synced 2025-01-25 13:14:22 +08:00
16 lines
322 B
PHP
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
|