diff --git a/NEWS b/NEWS index f100a9478e4..a706d4379a3 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,8 @@ PHP NEWS (Keisial at gmail dot com, Greg) - Added support for using compressed connections with PDO_mysql. (Johannes) +- Deprecated define_syslog_variables(). (Kalle) + - Fixed bug causing the algorithm parameter of mhash() to be modified. (Scott) - Fixed bug #46238 (Segmentation fault on static call with empty string method). diff --git a/ext/standard/syslog.c b/ext/standard/syslog.c index 392f671ac22..91f66dc86d4 100644 --- a/ext/standard/syslog.c +++ b/ext/standard/syslog.c @@ -207,6 +207,8 @@ PHP_FUNCTION(define_syslog_variables) return; } + php_error_docref(NULL TSRMLS_CC, E_DEPRECATED, "define_syslog_variables is deprecated, please use the syslog constants instead"); + if (!BG(syslog_started)) { start_syslog(TSRMLS_C); } diff --git a/win32/build/registersyslog.php b/win32/build/registersyslog.php index db5f459f735..e5aa1d92c00 100755 --- a/win32/build/registersyslog.php +++ b/win32/build/registersyslog.php @@ -20,7 +20,6 @@ if (extension_loaded("win32std")) { reg_set_value($key, "TypesSupported", REG_DWORD, 7) or die("Types"); reg_set_value($key, "EventMessageFile", REG_SZ, $dll) or die("EventMessageFile"); - define_syslog_variables(); syslog(LOG_NOTICE, "Registered PHP Event source"); } else { echo "Could not register event source\n";