mirror of
https://github.com/php/php-src.git
synced 2026-04-28 10:43:30 +02:00
Reverting to previous state.
This commit is contained in:
@@ -190,10 +190,8 @@ static int zend_ub_body_write_no_header(const char *str, uint str_length)
|
||||
|
||||
static int zend_ub_body_write(const char *str, uint str_length)
|
||||
{
|
||||
#ifdef TRANS_SID
|
||||
char *newstr = NULL;
|
||||
uint new_length;
|
||||
#endif
|
||||
int result = 0;
|
||||
SLS_FETCH();
|
||||
|
||||
@@ -201,23 +199,19 @@ static int zend_ub_body_write(const char *str, uint str_length)
|
||||
zend_bailout();
|
||||
}
|
||||
if (php3_header()) {
|
||||
#ifdef TRANS_SID
|
||||
session_adapt_uris(str, str_length, &newstr, &new_length);
|
||||
|
||||
if (newstr) {
|
||||
str = newstr;
|
||||
str_length = new_length;
|
||||
}
|
||||
#endif
|
||||
|
||||
zend_body_write = zend_ub_body_write_no_header;
|
||||
result = zend_header_write(str, str_length);
|
||||
|
||||
#ifdef TRANS_SID
|
||||
if (newstr) {
|
||||
free(newstr);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user