[Resolved] LSWS latest with PHP 5.2.13

Discussion in 'Bug Reports' started by nowiresltd, May 10, 2010.

  1. nowiresltd

    nowiresltd New Member

    Hi

    throws an error when I use Litespeed. Works fine in Apache I have also enabled globals in htaccess as well as php.ini

    while (list ($key, $val) = each ($HTTP_POST_VARS))

    Warning: Variable passed to each() is not an array or object in /home/user/public_html/admin/system_login.php on line 6

    Warning: Cannot modify header information - headers already sent by (output started at /home/eclipsep/public_html/admin/system_login.php:6) in /home/user/public_html/admin/system_login.php on line 55

    Warning: Cannot modify header information - headers already sent by (output started at /home/eclipsep/public_html/admin/system_login.php:6) in /home/user/public_html/admin/system_login.php on line 56

    Warning: reset() [function.reset]: Passed variable is not an array or object in /home/user/public_html/admin/system_login.php on line 63

    Warning: Variable passed to each() is not an array or object in /home/user/public_html/admin/system_login.php on line 64

    Warning: Cannot modify header information - headers already sent by (output started at /home/user/public_html/admin/system_login.php:6) in /home/user/public_html/admin/system_login.php on line 69
    Last edited by a moderator: May 12, 2010
  2. mistwang

    mistwang LiteSpeed Staff

    You need to explicitly turn on "register_long_arrays" by set
    register_long_arrays On

    in php.ini
  3. nowiresltd

    nowiresltd New Member

    Resolved.

    I made $HTTP_POST_VARS = $POST

    Thanks

Share This Page