1--TEST-- 2GH-16908 (_ZendTestMagicCallForward does not handle references well) 3--EXTENSIONS-- 4zend_test 5--FILE-- 6<?php 7$cls = new _ZendTestMagicCallForward(); 8function &foo() { 9} 10$cls->foo()->x ??= 42; 11?> 12--EXPECTF-- 13Notice: Only variable references should be returned by reference in %s on line %d 14 15Fatal error: Uncaught Error: Attempt to assign property "x" on null in %s:%d 16Stack trace: 17#0 {main} 18 thrown in %s on line %d 19