Re: [PHP4BETA] cvs: /php4 output.c
| From: | Zeev Suraski | Date: | Sun, 12 Sep 1999 00:09:37 +0000 |
| Subject: | Re: [PHP4BETA] cvs: /php4 output.c | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-4341@lists.php.net to get a copy of this message | ||
What does that do?
Zeev
On Sun, 12 Sep 1999, Andrey Zmievski wrote:
> 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;
>
>
>
> --
> PHP 4 Beta
>
--
-----------------------------------------------------
Zeev Suraski <zeev@zend.com> http://www.zend.com/
For a PGP public key, finger bourbon@netvision.net.il