1--TEST-- 2Bug #47165 (Possible memory corruption when passing return value by reference) 3--FILE-- 4<?php 5class Foo { 6 var $bar = array(); 7 8 static function bar() { 9 static $instance = null; 10 $instance = new Foo(); 11 return $instance->bar; 12 } 13} 14extract(Foo::bar()); 15echo "ok\n"; 16?> 17--EXPECT-- 18ok 19