|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-13 07:40 UTC] megan dot boardman at rweinnogy dot com
[2004-04-13 12:28 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 14:00:01 2025 UTC |
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