--TEST-- Verifies that generated lazy loading ghost objects disallow protected property direct read --FILE-- createProxy('Kitchen', function () {}); $proxy->sweets; ?> --EXPECTF-- %SFatal error: Cannot access protected property %s::$sweets in %s on line %d