Anonymous | Login | Signup for a new account | 12-17-2024 08:51 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ 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 | ||||||
Status | closed | Product 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. |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed. 27 unique queries executed. |