php-src/Zend/tests/gh9136.phpt
Ilija Tovilo 966d22b1bd
Fix property fetch on magic constants in constant expressions
Closes GH-9136
Closes GH-9138
Closes GH-9172
2022-07-28 14:14:11 +02:00

11 lines
216 B
PHP

--TEST--
GH-9136: Assertion when fetching property of magic constant in constant expression
--FILE--
<?php
const C = __file__->foo;
?>
--EXPECTF--
Warning: Attempt to read property "foo" on string in %s on line %d