summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKalle Sommer Nielsen <kalle@php.net>2008-10-15 18:41:57 +0000
committerKalle Sommer Nielsen <kalle@php.net>2008-10-15 18:41:57 +0000
commit12bd1eae9f4994e8e2de767d37126fc06a50d567 (patch)
tree5c0896030ec6e060790e2c98f99677b5e1290110
parent30173a8ec884d3ee89ed8a7e7889bf88b5b80af8 (diff)
downloadphp-git-12bd1eae9f4994e8e2de767d37126fc06a50d567.tar.gz
[DOC] Deprecate define_syslog_variables() in 5.3
-rw-r--r--NEWS2
-rw-r--r--ext/standard/syslog.c2
-rwxr-xr-xwin32/build/registersyslog.php1
3 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index f100a9478e..a706d4379a 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 392f671ac2..91f66dc86d 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 db5f459f73..e5aa1d92c0 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";