Anonymous | Login | Signup for a new account | 12-17-2024 14:46 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 | ||||
0002837 | [Quercus] | minor | always | 08-12-08 07:53 | 08-14-08 10:38 | ||||
Reporter | wikipo | View Status | public | ||||||
Assigned To | nam | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 3.2.0 | ||||||
Summary | 0002837: argument by reference and self:: | ||||||||
Description |
When calling a class method with the self::method syntax, the arguments passed by reference are not updated on return. For example, in <?php class test { function f1(&$str) { $str = "text"; } function f2() { $str = ""; self::f1($str); echo "result: "; echo $str; } } $b = new test(); $b->f2(); ?> displays: "result: " (insted of "result: text") |
||||||||
Additional Information |
I modified the code in ClassMethodExpr/eval(), subsituting: values[i] = _args[i].eval(env); with: values[i] = _args[i].evalArg(env); and it seems to correct this issue. |
||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |