mirror of
https://github.com/php/php-src.git
synced 2024-09-29 05:46:06 +00:00
99d818f1e9
To properly support this make update_opN_const fallible -- they are not always called through replace_with_const.
12 lines
250 B
PHP
12 lines
250 B
PHP
--TEST--
|
|
Static property access on constexpr class evaluating to integer
|
|
--FILE--
|
|
<?php
|
|
((int)1)::$b;
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Class name must be a valid object or a string in %s:%d
|
|
Stack trace:
|
|
#0 {main}
|
|
thrown in %s on line %d
|