ID: 27972 Updated by: [EMAIL PROTECTED] Reported By: megan dot boardman at rweinnogy dot com -Status: Open +Status: Bogus Bug Type: PHP options/info functions Operating System: UNIX 5.1 ALPHA PHP Version: 4.3.5 New Comment:
You're doing something really wrong. Previous Comments: ------------------------------------------------------------------------ [2004-04-13 07:40:45] megan dot boardman at rweinnogy dot com 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 ------------------------------------------------------------------------ [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