Re: [PHP-DEV] Re: problems with ob_gzhandler

2001-08-31 Thread Wez Furlong

On 08/31/01, "Zeev Suraski" <[EMAIL PROTECTED]> wrote:
> The bugs (two different ones) and their symptoms should be gone now.

Works for me; thanks!

--Wez.


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Re: problems with ob_gzhandler

2001-08-31 Thread Zeev Suraski

It should be gone with the latest CVS

At 17:55 31-08-01, Wez Furlong wrote:
>On 08/31/01, "Zeev Suraski" <[EMAIL PROTECTED]> wrote:
> > BTW, any chance you're using trans_sid?  (can you check if
> > php_session_start_output_handler() ends up being called for some reason?)
>
>I'm not using trans_sid but I am using sessions.
>My scripts generally do this:
>
>if (!session_is_registered("sess")) {
> $sess = array();
> session_register("sess");
>}
>
>if (!broken_browser())
> ob_start("ob_gzhandler");
>else
> ob_start();
>
>The session handler is a custom handler against a mysql db.
>
>If the scripts need to redirect, they do this:
>
>session_write_close(); // Concurrency problems arise otherwise
>header("Location: ...");
>exit();
>
>Hope that helps; I dont have time to get in there with a debugger
>right now.
>
>--Wez.
>
>
>--
>PHP Development Mailing List 
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
Zeev Suraski <[EMAIL PROTECTED]>
CTO &  co-founder, Zend Technologies Ltd. http://www.zend.com/


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Re: problems with ob_gzhandler

2001-08-31 Thread Wez Furlong

On 08/31/01, "Zeev Suraski" <[EMAIL PROTECTED]> wrote:
> BTW, any chance you're using trans_sid?  (can you check if 
> php_session_start_output_handler() ends up being called for some reason?)

I'm not using trans_sid but I am using sessions.
My scripts generally do this:

if (!session_is_registered("sess")) {
$sess = array();
session_register("sess");
}

if (!broken_browser())
ob_start("ob_gzhandler");
else
ob_start();

The session handler is a custom handler against a mysql db.

If the scripts need to redirect, they do this:

session_write_close(); // Concurrency problems arise otherwise
header("Location: ...");
exit();

Hope that helps; I dont have time to get in there with a debugger
right now.

--Wez.


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Re: problems with ob_gzhandler

2001-08-31 Thread Zeev Suraski

The bugs (two different ones) and their symptoms should be gone now.

At 15:49 31-08-01, Thies C. Arntzen wrote:
>On 31 Aug 2001 15:27:11 +0300, Zeev Suraski wrote:
> > BTW, any chance you're using trans_sid?  (can you check if
> > php_session_start_output_handler() ends up being called for some reason?)
>
>it does get called. but the session is already there (cookie based) so
>there's no reason to start the trans-sid thingie. somehow the logic in
>session.c:917 seems wrong.
>
>re,
>tc
>
>
>
> >
> > At 15:16 31-08-01, Thies C. Arntzen wrote:
> > >hi,
> > >i have "output_handler=ob_gzhandler" in my php.ini
> > >
> > >and just found those messages in my apache error_log:
> > >[Fri Aug 31 13:20:47 2001]  Script:  '/home/thies/shop/login.php'
> > >---
> > >/home/thies/devel/php4/main/output.c(240) : Block 0x0821D270 status:
> > >Beginning:  Overrun (magic=0x402640D8, expected=0x7312F8DC)
> > >   End:  Unknown
> > >
> > >which is a BadThing(tm). i'm running HEAD - haven't tried PHP_4_0_7.
> > >
> > >'cause i don't have the time right now to dig myself i though that
> > >reporting it is nearly half as good as fixing it;-)
> > >
> > >re,
> > >tc
> >
> > --
> > Zeev Suraski <[EMAIL PROTECTED]>
> > CTO &  co-founder, Zend Technologies Ltd. http://www.zend.com/
> >
>
>
>
>--
>PHP Development Mailing List 
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

--
Zeev Suraski <[EMAIL PROTECTED]>
CTO &  co-founder, Zend Technologies Ltd. http://www.zend.com/


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Re: problems with ob_gzhandler

2001-08-31 Thread Zeev Suraski

At 15:49 31-08-01, Thies C. Arntzen wrote:
>On 31 Aug 2001 15:27:11 +0300, Zeev Suraski wrote:
> > BTW, any chance you're using trans_sid?  (can you check if
> > php_session_start_output_handler() ends up being called for some reason?)
>
>it does get called. but the session is already there (cookie based) so
>there's no reason to start the trans-sid thingie. somehow the logic in
>session.c:917 seems wrong.

Ok, that's what I suspected.  I'll try to look at it now.

Zeev


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]