1--TEST--
2Nullsafe operator on referenced value
3--FILE--
4<?php
5
6$val = null;
7$ref =& $val;
8var_dump($ref?->foo);
9
10$val = new stdClass;
11var_dump($ref?->foo);
12
13?>
14--EXPECTF--
15NULL
16
17Warning: Undefined property: stdClass::$foo in %s on line %d
18NULL
19