mirror of
https://github.com/php/php-src.git
synced 2024-11-26 19:33:55 +08:00
12 lines
237 B
PHP
12 lines
237 B
PHP
--TEST--
|
|
Error case: class constant as an encapsed containing a variable
|
|
--FILE--
|
|
<?php
|
|
class myclass
|
|
{
|
|
const myConst = "$myVar";
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Constant expression contains invalid operations in %s on line %d
|