blob: 01839ba7ef81bf9121cb372b6595c582b30f2b3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
--TEST--
Basic class support - attempting to modify a class constant by assignment
--FILE--
<?php
class aclass
{
const myConst = "hello";
}
echo "\nTrying to modify a class constant directly - should be parse error.\n";
aclass::myConst = "no!!";
var_dump(aclass::myConst);
?>
--EXPECTF--
Parse error: %s in %s on line %d
|