From: Uwe Schindler Date: Thu, 4 Dec 2003 08:56:07 +0000 (+0000) Subject: Fix bug #25916: get_browser() -> PHP Fatal error: Nesting level too deep - recursive... X-Git-Tag: php-4.3.5RC1~117 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c6e131f9a4e5ce21e7ed59a6820b4b11afc78849;p=php Fix bug #25916: get_browser() -> PHP Fatal error: Nesting level too deep - recursive dependency? --- diff --git a/NEWS b/NEWS index 990ebe5e82..d0d1b1c615 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,8 @@ PHP 4 NEWS (Jani) - Fixed header handler in NSAPI SAPI module (header->replace was ignored, send_default_content_type now sends value from php.ini). (Uwe Schindler) +- Fixed bug #25916 (get_browser() -> PHP Fatal error: Nesting level + too deep - recursive dependency?). (Uwe Schindler) - Fixed bug #26488 (Missing declaration of CRTSCTS in ext/dio/dio.c). (Jani) - Fixed bug #26467 (flock() does not force the "wouldblock" parameter to be passed by reference). (Wez) diff --git a/ext/standard/browscap.c b/ext/standard/browscap.c index a13a0f38fb..91e1065387 100644 --- a/ext/standard/browscap.c +++ b/ext/standard/browscap.c @@ -149,7 +149,7 @@ PHP_MINIT_FUNCTION(browscap) zend_file_handle fh; memset(&fh, 0, sizeof(fh)); - if (zend_hash_init(&browser_hash, 0, NULL, (dtor_func_t) browscap_entry_dtor, 1)==FAILURE) { + if (zend_hash_init_ex(&browser_hash, 0, NULL, (dtor_func_t) browscap_entry_dtor, 1, 0)==FAILURE) { return FAILURE; }