Menu

#66 Session.put_headers wrong for PHP3

open
nobody
Session (11)
2
2002-07-03
2002-01-15
No

The put_headers() method in session.inc calls header()
with 'false' as the second argument in some cases, to
append to a header rather than replacing it. This
feature does not exist in PHP3, causing the header
values to be incomplete because only the last value
obtains.

The attached patch fixes this problem and should work
in both PHP3 and PHP4.

Discussion

  • Fred Yankowski

    Fred Yankowski - 2002-01-15

    unified diff output

     
  • nathan hruby

    nathan hruby - 2002-07-02

    Logged In: YES
    user_id=19736

    What version of php3 are you using? I don't see mention of
    when the second flag was added to the headers() function,
    though I am fairly certian that it was part of php3...

     
  • nathan hruby

    nathan hruby - 2002-07-02
    • labels: --> Session
     
  • Anonymous

    Anonymous - 2002-07-03

    Logged In: YES
    user_id=279065

    Yeah, current PHP documentation does not mention such
    a change, but I vaguely remember it being made several
    years ago. Should we bother asking someone senior on
    the PHP development team, or should we just say PHPLIB
    only works with PHP 3.x.y + where x.y are beyond this
    change, most likely 3.0.5.

     
  • Anonymous

    Anonymous - 2002-07-03
    • priority: 5 --> 2
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.