Session.put_headers wrong for PHP3
Brought to you by:
nhruby,
richardarcher
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.
unified diff output
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...
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.