mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +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
|