1--TEST-- 2Trying assign value to property when an object is not returned in a function 3--FILE-- 4<?php 5 6class foo { 7 public function a() { 8 } 9} 10 11$test = new foo; 12 13$test->a()->a; 14print "ok\n"; 15 16$test->a()->a = 1; 17print "ok\n"; 18 19?> 20--EXPECTF-- 21Notice: Trying to get property 'a' of non-object in %s on line %d 22ok 23 24Warning: Creating default object from empty value in %s on line %d 25ok 26