|
Mantis - Quercus
|
|||||
| Viewing Issue Advanced Details | |||||
|
|
|||||
| ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
| 3857 | minor | always | 01-22-10 17:27 | 02-04-10 12:03 | |
|
|
|||||
| Reporter: | nam | Platform: | |||
| Assigned To: | OS: | ||||
| Priority: | normal | OS Version: | |||
| Status: | closed | Product Version: | 4.0.2 | ||
| Product Build: | Resolution: | fixed | |||
| Projection: | none | ||||
| ETA: | none | Fixed in Version: | 4.0.4 | ||
|
|
|||||
| Summary: | 0003857: vbulletin - incorrect evaluation order of $this->{$table}["$fieldname"] | ||||
| Description: |
(rep by mrtom) http://forum.caucho.com/showthread.php?t=3316 [^] <?php class A { var $foo = array(); function test() { $bar = "123"; $fieldname = "myName"; $table = "foo"; $this->{$table}["$fieldname"] = &$bar; var_dump($this->foo); } function test2() { $bar = "123"; $fieldname = "myName"; $table = "foo"; $arr = $this->{$table}; $arr["$fieldname"] = &$bar; var_dump($this->foo); } } $a0 = new A(); $a1 = new A(); $a0->test(); $a1->test2(); ?> |
||||
| Steps To Reproduce: | |||||
| Additional Information: | |||||
| Relationships | |||||
| Attached Files: | |||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||