Share

ActionApps

Tracker: Bugs

5 New PHP 5.1 no longer offers HTTP_*_VARS - ID: 1787894
Last Update: Comment added ( honzam )

We recently upgraded our server from RHEL3 to RHEL5 which includes php
5.1.6. This version of php no longer offers the older long variables, and
the "register_long_arrays" setting no longer does anything.

http://www.php.net/manual/en/ini.core.php#ini.register-long-arrays

We could not log into AA until I changed some of the $HTTP_GET_VARS
references to $_GET .

I believe it is now time to do a global search-and-replace on:

s/$HTTP_GET_VARS/$_GET/
s/$HTTP_POST_VARS/$_POST/
s/$HTTP_COOKIE_VARS/$_COOKIE/


I patched a few of the scripts, but not everything. I'm awaiting advise
from actual AA developers before proceeding given I have very little AA
knowledge.


Russell McOrmond ( russellmcormond ) - 2007-09-04 16:03

5

Closed

None

Honza Malik

None

None

Public


Comment ( 1 )




Date: 2007-09-05 11:09
Sender: honzamProject Admin


1) If you set "register_long_arrays ON" in your php.ini file, then the
HTTP_*_VARS arrays are filled (even if they are not listed in phpinfo())

2) I fixed the AA right now, so we no longer use HTTP_*_VARS. AA should
work with "register_long_arrays OFF" now. See SVN.

Honza


Log in to comment.

Attached File ( 1 )

Filename Description Download
session.inc.patch Sample patch of include/phplib/session.inc Download

Changes ( 4 )

Field Old Value Date By
status_id Open 2007-09-05 11:09 honzam
assigned_to nobody 2007-09-05 11:09 honzam
close_date - 2007-09-05 11:09 honzam
File Added 244154: session.inc.patch 2007-09-04 16:03 russellmcormond