Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003160 [Quercus] major always 12-12-08 09:20 12-14-08 11:07
Reporter koreth View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 4.0.0
Summary 0003160: Array ref not preserved
Description <?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 ( )".
Additional Information
Attached Files

- Relationships

- 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.
 

- Issue History
Date Modified Username Field Change
12-12-08 09:20 koreth New Issue
12-12-08 09:20 koreth Note Added: 0003608
12-14-08 11:07 ferg Note Added: 0003620
12-14-08 11:07 ferg Assigned To  => ferg
12-14-08 11:07 ferg Status new => closed
12-14-08 11:07 ferg Resolution open => fixed
12-14-08 11:07 ferg Fixed in Version  => 4.0.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker