trollboy
public php v1 · immutable<?php class test1 { public $test = 'Fail'; private $obj; public function __construct() { $this->obj = new test2($this); } } class test2 { public function __construct($ref_obj) { $ref_obj->test = 'win'; } } $test = new test1(); echo $test->test;