xref: /PHP-8.2/Zend/tests/gh9136.phpt (revision 966d22b1)
1--TEST--
2GH-9136: Assertion when fetching property of magic constant in constant expression
3--FILE--
4<?php
5
6const C = __file__->foo;
7
8?>
9--EXPECTF--
10Warning: Attempt to read property "foo" on string in %s on line %d
11