cvs: /php4 output.c

From: Date: Sun, 12 Sep 1999 00:05:45 +0000
Subject: cvs: /php4 output.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-4339@lists.php.net to get a copy of this message
andrey Sat Sep 11 20:05:45 1999 EDT Modified files: /php4 output.c Log: Use TRANS_SID macro for selective compilation.. Index: php4/output.c diff -u php4/output.c:1.14 php4/output.c:1.15 --- php4/output.c:1.14 Sat Sep 11 19:47:16 1999 +++ php4/output.c Sat Sep 11 20:05:45 1999 @@ -190,8 +190,10 @@ 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 @@ 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;

« previous php.version4 (#4339) next »