Anonymous | Login | Signup for a new account | 11-22-2024 04:23 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 | |||||||
0003519 | [Quercus] | block | always | 05-16-09 13:24 | 05-20-09 13:51 | |||||||
Reporter | koreth | View Status | public | |||||||||
Assigned To | ||||||||||||
Priority | normal | Resolution | open | |||||||||
Status | new | Product Version | 4.0.0 | |||||||||
Summary | 0003519: Reference not preserved in compiled mode | |||||||||||
Description |
<?php function dostuff($args) { $ref = &$args['ref']; $ref = array('123'=>'abc'); } function foo() { $args = array('ref' => &$arr); dostuff($args); print_r($arr); } foo(); Regular PHP, and Quercus in interpreted mode, prints "Array ( [123] => abc )". Quercus in compiled mode prints nothing. If you assign a value to $arr before the call to dostuff(), that value is still present after the call. |
|||||||||||
Additional Information | ||||||||||||
Attached Files | ||||||||||||
|
Notes | |
(0004028) koreth 05-20-09 13:51 |
This seems to have been fixed in a recent rev of the Pro code; I updated my Pro jar and the problem went away. So please close this bug. |
Issue History | |||
Date Modified | Username | Field | Change |
05-16-09 13:24 | koreth | New Issue | |
05-20-09 13:51 | koreth | Note Added: 0004028 |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed. 25 unique queries executed. |