Mantis - Quercus
Viewing Issue Advanced Details
3160 major always 12-12-08 09:20 12-14-08 11:07
koreth  
ferg  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003160: Array ref not preserved
<?php
function a() {
  $result = array();
  $args = array();
  $args['result'] = &$result;
  b($args);
  return $result;
}
function b($args) {
  $args['result'][] = 123;
}
print_r(a());

Regular PHP prints "Array ( [0] => 123 )". Quercus prints "Array ( )".

Notes
(0003608)
koreth   
12-12-08 09:20   
This is a pretty critical one for us. Seems to have broken some time in the last few weeks since the code in question runs fine with an earlier version of Quercus.
(0003620)
ferg   
12-14-08 11:07   
php/34b0 - copy-on-write issue with latest optimizations.