1--TEST--
2Dereferencing of magic constants
3--FILE--
4<?php
5
6function test() {
7    var_dump(__FUNCTION__[0]);
8    var_dump(__FUNCTION__->prop);
9    try {
10        __FUNCTION__->method();
11    } catch (Error $e) {
12        echo $e->getMessage(), "\n";
13    }
14}
15
16test();
17
18?>
19--EXPECTF--
20string(1) "t"
21
22Warning: Attempt to read property "prop" on string in %s on line %d
23NULL
24Call to a member function method() on string
25