Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
1216 | minor | always | 06-26-06 11:24 | 06-26-06 19:00 | |
|
|||||
Reporter: | nxnlvz | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 3.0.19 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 3.0.20 | ||
|
|||||
Summary: | 0001216: reference to GLOBAL variable can not be set using variable variables | ||||
Description: |
When creating refernce to global variable using _ Variable variables _ the parser for oject VarExpr will return false. This causes QuercusParser to fail with "unknown expr to global" The following will work global $link; This will not global $$link; But you can assign it using $$link =& $GLOBALS["link"]; |
||||
Steps To Reproduce: | |||||
Additional Information: |
Here is the full function. It comes from OSCommerce function osc_db_connect($server, $username, $password, $link = 'db_link') { //global $$link, $db_error; //global $db_error1; //global $$link; $$link =& $GLOBALS["link"]; $db_error =& $GLOBALS["db_error"]; $db_error = false; if (!$server) { $db_error = 'No Server selected.'; return false; } $$link = @mysql_connect($server, $username, $password) or $db_error = mysql_error(); return $$link; } |
||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|