From:             megan dot boardman at rweinnogy dot com
Operating system: UNIX 5.1 ALPHA
PHP version:      4.3.5
PHP Bug Type:     PHP options/info functions
Bug description:  register globals not loading from ini file

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 bug report at http://bugs.php.net/?id=27972&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27972&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27972&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27972&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27972&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27972&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27972&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27972&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27972&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27972&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27972&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27972&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27972&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27972&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27972&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27972&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27972&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27972&r=float

Reply via email to