blob: 4be8d885f5f001e04ab6bf61e82133f7d46b1f09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--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
|