ID:               20549
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Won't fix
+Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: Slackware Linux
 PHP Version:      4.2.2
 New Comment:

but it was already possible to do it.
i dont know which version i used, but it worked fine.
i think this could be customizable. again, even if PHP is secure by
default, user could prefer to handle risk on their own.

another little question, do you plan to remove register_globals option
availability in future version ? if yes, we will start update our code
now. i hope not.

thanks


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

[2002-11-22 05:35:30] [EMAIL PROTECTED]

That is not going to happen.

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

[2002-11-21 22:09:43] [EMAIL PROTECTED]

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;"

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

[2002-11-21 16:34:48] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.


If you enable register_globals then variables passed via
GET/POST/COOKIE will be avaliable in the global scope.

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

[2002-11-21 13:27:35] [EMAIL PROTECTED]

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


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


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

Reply via email to