From c6e131f9a4e5ce21e7ed59a6820b4b11afc78849 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Thu, 4 Dec 2003 08:56:07 +0000 Subject: [PATCH] Fix bug #25916: get_browser() -> PHP Fatal error: Nesting level too deep - recursive dependency? --- NEWS | 2 ++ ext/standard/browscap.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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; } -- 2.50.1