From:             [EMAIL PROTECTED]
Operating system: all
PHP version:      4.1.0
PHP Bug Type:     Feature/Change Request
Bug description:  allways global scope

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 bug report at: http://bugs.php.net/?id=14712&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to