Diff for /embedaddon/php/ext/standard/tests/array/array_values_variation6.phpt between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/21 23:48:03 version 1.1.1.2, 2012/05/29 12:34:44
Line 1 Line 1
 --TEST--  --TEST--
 Test array_values() function : usage variations - Referenced variables  Test array_values() function : usage variations - Referenced variables
 --INI--  
 allow_call_time_pass_reference=on  
 --FILE--  --FILE--
 <?php  <?php
 /* Prototype  : array array_values(array $input)  /* Prototype  : array array_values(array $input)
Line 29  echo "Change \$val2 and check result of array_values() Line 27  echo "Change \$val2 and check result of array_values()
 $val2 = 'deux';  $val2 = 'deux';
 var_dump($result1);  var_dump($result1);
   
 echo "\n-- Pass \$input argument by reference --\n";  
 $array = array(1, 2, 3);  
 var_dump($result2 = array_values(&$array));  
   
 echo "Done";  echo "Done";
 ?>  ?>
   
Line 56  array(3) { Line 50  array(3) {
   &string(4) "deux"    &string(4) "deux"
   [2]=>    [2]=>
   &string(5) "three"    &string(5) "three"
 }  
   
 -- Pass $input argument by reference --  
 array(3) {  
   [0]=>  
   int(1)  
   [1]=>  
   int(2)  
   [2]=>  
   int(3)  
 }  }
 Done  Done

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>