ID:               14712
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Duplicate
 Bug Type:         Feature/Change Request
 Operating System: all
 PHP Version:      4.1.0
 New Comment:

duplicate of #12669.


Previous Comments:
------------------------------------------------------------------------

[2001-12-27 02:10:51] [EMAIL PROTECTED]

Will be cool if a new language constructor set global scope to a
variable, like $_REQUEST, $_POST, etc.

This "forever global" constructor should work with every type of
variable (array,object,resource,string, etc)

So,

<?PHP

$smarty->template_dir = "/lib/here/";
forever $smarty;

function something() {
// output "/lib/here";
 print $smarty->template_dir;
}

// output "/lib/here";
 print $smarty->template_dir;

class foo {
function other () {
// output "/lib/here";
 print $smarty->template_dir;

}
}

Thanx.

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=14712&edit=1

Reply via email to