Anonymous | Login | Signup for a new account | 12-17-2024 08:24 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 | ||||
0001216 | [Quercus] | minor | always | 06-26-06 11:24 | 06-26-06 19:00 | ||||
Reporter | nxnlvz | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 3.0.19 | ||||||
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"]; |
||||||||
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; } |
||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |