Anonymous | Login | Signup for a new account | 12-17-2024 11:38 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0003372 | [Quercus] | block | always | 03-05-09 18:54 | 03-06-09 13:39 | ||||
Reporter | koreth | View Status | public | ||||||
Assigned To | nam | ||||||||
Priority | normal | Resolution | fixed | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | 4.0.0 | Product Version | 4.0.0 | ||||
Product Build | |||||||||
Summary | 0003372: Refs not preserved | ||||||||
Description |
<?php function setup(&$pending=null) { $GLOBALS['LIST'][] = array( 'ref' => &$pending, ); } function dispatch() { foreach ($GLOBALS['LIST'] as $entry) { $ref = &$entry['ref']; $ref = 'xyzzy'; } } $x = null; setup($x); dispatch(); print strlen($x); Regular PHP prints "5". Quercus prints "0" -- somewhere along the line it loses the fact that it's dealing with a reference, and no value gets assigned to $x. |
||||||||
Steps To Reproduce | |||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed. 27 unique queries executed. |