Skip to content

Commit 916528e

Browse files
committed
Merge branch 'PHP-8.4'
2 parents 45d1acf + 6cf24cd commit 916528e

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed

ext/standard/basic_functions.c

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -216,31 +216,16 @@ static void php_putenv_destructor(zval *zv) /* {{{ */
216216

217217
static void basic_globals_ctor(php_basic_globals *basic_globals_p) /* {{{ */
218218
{
219-
BG(umask) = -1;
220-
BG(user_tick_functions) = NULL;
221-
BG(user_filter_map) = NULL;
222-
BG(serialize_lock) = 0;
223-
224-
memset(&BG(serialize), 0, sizeof(BG(serialize)));
225-
memset(&BG(unserialize), 0, sizeof(BG(unserialize)));
226-
227-
memset(&BG(url_adapt_session_ex), 0, sizeof(BG(url_adapt_session_ex)));
228-
memset(&BG(url_adapt_output_ex), 0, sizeof(BG(url_adapt_output_ex)));
219+
memset(basic_globals_p, 0, sizeof(php_basic_globals));
229220

230-
BG(url_adapt_session_ex).type = 1;
231-
BG(url_adapt_output_ex).type = 0;
221+
basic_globals_p->umask = -1;
222+
basic_globals_p->url_adapt_session_ex.type = 1;
232223

233-
zend_hash_init(&BG(url_adapt_session_hosts_ht), 0, NULL, NULL, 1);
234-
zend_hash_init(&BG(url_adapt_output_hosts_ht), 0, NULL, NULL, 1);
235-
236-
#if defined(_REENTRANT)
237-
memset(&BG(mblen_state), 0, sizeof(BG(mblen_state)));
238-
#endif
239-
240-
BG(page_uid) = -1;
241-
BG(page_gid) = -1;
224+
zend_hash_init(&basic_globals_p->url_adapt_session_hosts_ht, 0, NULL, NULL, 1);
225+
zend_hash_init(&basic_globals_p->url_adapt_output_hosts_ht, 0, NULL, NULL, 1);
242226

243-
BG(syslog_device) = NULL;
227+
basic_globals_p->page_uid = -1;
228+
basic_globals_p->page_gid = -1;
244229
}
245230
/* }}} */
246231

0 commit comments

Comments
 (0)