mirror of
https://github.com/php/php-src.git
synced 2026-04-01 05:02:27 +02:00
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
|