1<?php 2class MethodCallbackByReference 3{ 4 public function bar(&$a, &$b, $c) 5 { 6 Legacy::bar($a, $b, $c); 7 } 8 9 public function callback(&$a, &$b, $c) 10 { 11 $b = 1; 12 } 13} 14