Mantis - Quercus
Viewing Issue Advanced Details
3212 minor always 12-30-08 11:52 12-30-08 12:49
koreth  
nam  
normal  
closed 4.0.0  
fixed  
none    
none 4.0.0  
0003212: Array references not working
This old test case of mine stopped working with the recent fix for an array copy-on-write issue (svn revision 4980):

<?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 (and Quercus without that revision) prints "Array ( [0] => 123 )". Quercus with the fix prints "Array ( )".

Notes
(0003688)
nam   
12-30-08 12:49   
php/04b0

The fix for 3210 needs to be re-looked at.

http://bugs.caucho.com/view.php?id=3210 [^]