Location: PHPKode > projects > phc > test/subjects/codegen/dont_shred_the_ref3.php
<?php

	// this adds an element to $x. If we add
	// a temporary without a reference, we
	// get wrong code (nothing is added)

	function foo (&$y)
	{
		$y = 7;
	}
	
	$x = array ();
	foo ($x[0]);
	var_dump($x);
?>
Return current item: phc