Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3372 | block | always | 03-05-09 18:54 | 03-06-09 13:39 | |
|
|||||
Reporter: | koreth | Platform: | |||
Assigned To: | nam | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 4.0.0 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.0 | ||
|
|||||
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: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|