#27972 [Opn]: register globals not loading from ini file

From: Date: Tue, 13 Apr 2004 11:40:46 +0000
Subject: #27972 [Opn]: register globals not loading from ini file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-58014@lists.php.net to get a copy of this message
ID: 27972 User updated by: megan dot boardman at rweinnogy dot com Reported By: megan dot boardman at rweinnogy dot com Status: Open Bug Type: PHP options/info functions Operating System: UNIX 5.1 ALPHA PHP Version: 4.3.5 New Comment: Problem is not present against 4.3.4. i.e. Following the same installation procedures and using the same php.ini file, with register_globals=On: - 4.3.4 reports register_globals as "On" (1 in echo) and allows the webforms to be posted - 4.3.5 reports register_globals as "Off" (0 in echo) and prevents webforms from being posted Previous Comments: ------------------------------------------------------------------------ [2004-04-13 07:10:53] megan dot boardman at rweinnogy dot com Description: ------------ I have some legacy scripts that require register_globals to be 'on'. I had this working under 4.3.3 but upgraded this morning to 4.3.5 and it no longer works, even though I'm using the same ini file. Basic behaviour is that webforms generated by the PHP will not post - i.e. variables created by posting are not available in the scope of the PHP script. (We had this problem upon upgrading from PHP 3 to PHP 4.3.3 but it went away upon switching on register_globals.) Running echo(ini_get('register_globals')) prints 0. Running phpinfo() tells me that the path to php.ini is /usr/local/lib. In /usr/local/lib/php.ini I have register_globals = On and safe_mode=off. Configure line is: './configure' '--with-oci8=/opt/oracle/product/8.1.7' '--with-apxs=/usr/internet/httpd/bin/apxs' Reproduce code: --------------- echo(ini_get('register_globals')) Expected result: ---------------- Expect it to print 1 when php.ini file says register_globals = On. Actual result: -------------- 0 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=27972&edit=1

« previous php.bugs (#58014) next »