|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-11-21 13:27 UTC] somekool at mytradecenter dot com
Hi this is most a request than a regular bug report. we found that we can't access get and post vars in user defined function by using $var in PHP 4.2. even with register_globals set to on, variable cannot be accessed by using the common way. this require a lot of work to adapt our code and we prefer to take the responsability on our own. we understand the security issue, and appreciate that PHP take care of user security. but, can't we handle by our own the security problem ? is there any option to make External variables being global as it was ? thanks PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 07:00:02 2025 UTC |
yes i enabled register_globals but i would like my variables to be really global and usable in every scope, even in user defined function function foo() { echo $varX; } without specifying "global $varX;"