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