1
0
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:
Andrey Hristov
1999-09-12 00:32:22 +00:00
parent 276c815f04
commit b203fb3481
-6
View File
@@ -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;