From: Ilia Alshanetsky Date: Wed, 7 Dec 2005 17:36:17 +0000 (+0000) Subject: Undo accidental revert of patch for bug #34729 X-Git-Tag: php-5.1.2RC1~173 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d5bb2e38efdd31618ea19b0cbda4062b023b6c31;p=php Undo accidental revert of patch for bug #34729 --- diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c index 4fdb28024c..f5d9661444 100644 --- a/ext/standard/basic_functions.c +++ b/ext/standard/basic_functions.c @@ -107,6 +107,8 @@ php_basic_globals basic_globals; #include "php_fopen_wrappers.h" #include "streamsfuncs.h" +static zend_class_entry *incomplete_class_entry = NULL; + static ZEND_BEGIN_ARG_INFO(first_and_second__args_force_ref, 0) ZEND_ARG_PASS_INFO(1) @@ -955,8 +957,7 @@ static void basic_globals_ctor(php_basic_globals *basic_globals_p TSRMLS_DC) #if defined(_REENTRANT) && defined(HAVE_MBRLEN) && defined(HAVE_MBSTATE_T) memset(&BG(mblen_state), 0, sizeof(BG(mblen_state))); #endif - - BG(incomplete_class) = php_create_incomplete_class(TSRMLS_C); + BG(incomplete_class) = incomplete_class_entry; } @@ -1022,6 +1023,8 @@ PHP_MINIT_FUNCTION(basic) #endif #endif + BG(incomplete_class) = incomplete_class_entry = php_create_incomplete_class(TSRMLS_C); + REGISTER_LONG_CONSTANT("CONNECTION_ABORTED", PHP_CONNECTION_ABORTED, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("CONNECTION_NORMAL", PHP_CONNECTION_NORMAL, CONST_CS | CONST_PERSISTENT); REGISTER_LONG_CONSTANT("CONNECTION_TIMEOUT", PHP_CONNECTION_TIMEOUT, CONST_CS | CONST_PERSISTENT);