]> granicus.if.org Git - php/commitdiff
Fix bug #25916: get_browser() -> PHP Fatal error: Nesting level too deep - recursive...
authorUwe Schindler <thetaphi@php.net>
Thu, 4 Dec 2003 08:56:07 +0000 (08:56 +0000)
committerUwe Schindler <thetaphi@php.net>
Thu, 4 Dec 2003 08:56:07 +0000 (08:56 +0000)
NEWS
ext/standard/browscap.c

diff --git a/NEWS b/NEWS
index 990ebe5e823a41886e41750fb7b40a25938ece39..d0d1b1c615747009911ec9e053f8f98c5f5fc8ae 100644 (file)
--- 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)
index a13a0f38fbc782630651c77c337632ea1463ce4e..91e1065387365b3bbc99d10a9d62de51dd3a7b9d 100644 (file)
@@ -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;
                }