diff options
| author | Andrey Hristov <andrey@php.net> | 1999-09-12 00:05:45 +0000 |
|---|---|---|
| committer | Andrey Hristov <andrey@php.net> | 1999-09-12 00:05:45 +0000 |
| commit | 0c3ada7dd4ebd752b020f8cd5d949a4d915518d1 (patch) | |
| tree | 1e7c724797832136fa5ec06891baf25ca50534d4 | |
| parent | d8fc73b5c4f54ca4b1272738b601779b1e5a8918 (diff) | |
| download | php-git-0c3ada7dd4ebd752b020f8cd5d949a4d915518d1.tar.gz | |
Use TRANS_SID macro for selective compilation..
| -rw-r--r-- | output.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -190,8 +190,10 @@ 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(); @@ -199,19 +201,23 @@ 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; |
