#27471 [Fbk->Csd]: variables in a function or script alter session variables

From: Date: Thu, 04 Mar 2004 08:22:38 +0000
Subject: #27471 [Fbk->Csd]: variables in a function or script alter session variables
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-55889@lists.php.net to get a copy of this message
ID: 27471 User updated by: wxjasp02 at smumn dot edu Reported By: wxjasp02 at smumn dot edu -Status: Feedback +Status: Closed Bug Type: Session related Operating System: RedHat Linux 9.0 PHP Version: Irrelevant New Comment: realized PHP forces $_ variables to GLOBAL scope if --register-globals is set to ON. Previous Comments: ------------------------------------------------------------------------ [2004-03-03 13:22:44] derick@php.net Keeping the status at "feedback" until then then. ------------------------------------------------------------------------ [2004-03-03 13:01:14] wxjasp02 at smumn dot edu i will post some sample code by midnight CST ------------------------------------------------------------------------ [2004-03-03 12:59:04] wxjasp02 at smumn dot edu http://www.mytoast.net/phpinfo.php register_globals is ON. ------------------------------------------------------------------------ [2004-03-03 04:44:47] derick@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try avoid embedding huge scripts into the report. Also fill in your PHP version number, which IS relevant and add a link to your phpinfo(); output. ------------------------------------------------------------------------ [2004-03-03 02:50:14] irchtml@php.net What is register_globals set to? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/27471 -- Edit this bug report at http://bugs.php.net/?id=27471&edit=1

« previous php.bugs (#55889) next »