Skip to content

Commit 5492f0a

Browse files
committed
Merge branch 'PHP-8.3'
2 parents 1e5241d + 42ea0ca commit 5492f0a

File tree

3 files changed

+2
-28
lines changed

3 files changed

+2
-28
lines changed

ext/standard/basic_functions.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -362,9 +362,6 @@ PHP_MINIT_FUNCTION(basic) /* {{{ */
362362

363363
PHP_MSHUTDOWN_FUNCTION(basic) /* {{{ */
364364
{
365-
#ifdef HAVE_SYSLOG_H
366-
PHP_MSHUTDOWN(syslog)(SHUTDOWN_FUNC_ARGS_PASSTHRU);
367-
#endif
368365
#ifdef ZTS
369366
ts_free_id(basic_globals_id);
370367
#ifdef PHP_WIN32
@@ -421,9 +418,6 @@ PHP_RINIT_FUNCTION(basic) /* {{{ */
421418
BG(user_shutdown_function_names) = NULL;
422419

423420
PHP_RINIT(filestat)(INIT_FUNC_ARGS_PASSTHRU);
424-
#ifdef HAVE_SYSLOG_H
425-
BASIC_RINIT_SUBMODULE(syslog)
426-
#endif
427421
BASIC_RINIT_SUBMODULE(dir)
428422
BASIC_RINIT_SUBMODULE(url_scanner_ex)
429423

@@ -473,9 +467,7 @@ PHP_RSHUTDOWN_FUNCTION(basic) /* {{{ */
473467

474468
PHP_RSHUTDOWN(filestat)(SHUTDOWN_FUNC_ARGS_PASSTHRU);
475469
#ifdef HAVE_SYSLOG_H
476-
#ifdef PHP_WIN32
477-
BASIC_RSHUTDOWN_SUBMODULE(syslog)(SHUTDOWN_FUNC_ARGS_PASSTHRU);
478-
#endif
470+
BASIC_RSHUTDOWN_SUBMODULE(syslog);
479471
#endif
480472
BASIC_RSHUTDOWN_SUBMODULE(assert)
481473
BASIC_RSHUTDOWN_SUBMODULE(url_scanner_ex)

ext/standard/php_ext_syslog.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@
2222
#include "php_syslog.h"
2323

2424
PHP_MINIT_FUNCTION(syslog);
25-
PHP_RINIT_FUNCTION(syslog);
26-
#ifdef PHP_WIN32
2725
PHP_RSHUTDOWN_FUNCTION(syslog);
28-
#endif
29-
PHP_MSHUTDOWN_FUNCTION(syslog);
3026

3127
#endif
3228

ext/standard/syslog.c

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,23 +41,9 @@ PHP_MINIT_FUNCTION(syslog)
4141
}
4242
/* }}} */
4343

44-
PHP_RINIT_FUNCTION(syslog)
45-
{
46-
BG(syslog_device) = NULL;
47-
return SUCCESS;
48-
}
49-
50-
51-
#ifdef PHP_WIN32
5244
PHP_RSHUTDOWN_FUNCTION(syslog)
5345
{
54-
closelog();
55-
return SUCCESS;
56-
}
57-
#endif
58-
59-
PHP_MSHUTDOWN_FUNCTION(syslog)
60-
{
46+
php_closelog();
6147
if (BG(syslog_device)) {
6248
free(BG(syslog_device));
6349
BG(syslog_device) = NULL;

0 commit comments

Comments
 (0)