Re: browscap and nesting level too deep (bug #25916)
| From: | Jay Smith | Date: | Thu, 04 Dec 2003 15:06:12 +0000 |
| Subject: | Re: browscap and nesting level too deep (bug #25916) | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-6213@lists.php.net to get a copy of this message | ||
Glad to see it's finally working. I was never able to get those errors, but
it probably had something to do with the thread pooling you had configured.
And seeing as it's working now, I guess I don't need to bother trying to
get them.
J
Uwe Schindler wrote:
> On my solaris box the fix does it. I tested it by hammering the same PHP
> script using get_browser() with and without patch. Without patch it gets
> this error. With not and script works :)
>
> The big problem with this bug is that when the error happens the first
> time (3 threads using get_browser()), the thread which produces the error
> does not reset the recursion counter (because of the error) and after
> finishing all threads it is left at 1. When then 2 more threads use
> get_browser() at the same time the second one gets the error and at the
> end the counter is left at 2. And then all further calls fail...
>
> In my special case today when the error occured it was:
>
> 168.221.143.68 www.pangaea.de - [03/Dec/2003:17:10:09 +0100] "GET /
> HTTP/1.1" 200 1985
>
> "http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=pangaea"
> "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"
> 168.221.143.68 www.pangaea.de - [03/Dec/2003:17:10:09 +0100] "GET /
> HTTP/1.1" 200 1985
>
> "http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=pangaea"!õÖ?Éy
> ±ý.2@>à)
> "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"
> 168.221.143.68 www.pangaea.de - [03/Dec/2003:17:10:09 +0100] "GET /
> HTTP/1.1" 200 1985
>
> "http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=pangaea"
> "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"
> 168.221.143.68 www.pangaea.de - [03/Dec/2003:17:10:09 +0100] "GET /
> HTTP/1.1" 200 150
> "EË j¾þ©CÌ¡
> "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"
> 168.221.143.68 www.pangaea.de - [03/Dec/2003:17:10:09 +0100] "GET /
> HTTP/1.1" 200 150
>
> "http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=pangaea"fªÕtBÁ¾^Î7Àb
>
> "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"
> 168.221.143.68 www.pangaea.de - [03/Dec/2003:17:10:09 +0100] "GET /
> HTTP/1.1" 200 150
>
> "http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=pangaea"
> "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)"
>
> 6 threads accessed the get_browser() at the same time - 3 of them failed
> (content-length=150... and visible in error log), counter left at 3 ->
> from this time on get_browser failed to work.
>
> I think I should apply the patch to 4.3 and 5 (same problem there) and
> close the bug.
>
> Uwe
>