diff options
| author | Kalle Sommer Nielsen <kalle@php.net> | 2008-10-15 18:41:57 +0000 |
|---|---|---|
| committer | Kalle Sommer Nielsen <kalle@php.net> | 2008-10-15 18:41:57 +0000 |
| commit | 12bd1eae9f4994e8e2de767d37126fc06a50d567 (patch) | |
| tree | 5c0896030ec6e060790e2c98f99677b5e1290110 | |
| parent | 30173a8ec884d3ee89ed8a7e7889bf88b5b80af8 (diff) | |
| download | php-git-12bd1eae9f4994e8e2de767d37126fc06a50d567.tar.gz | |
[DOC] Deprecate define_syslog_variables() in 5.3
| -rw-r--r-- | NEWS | 2 | ||||
| -rw-r--r-- | ext/standard/syslog.c | 2 | ||||
| -rwxr-xr-x | win32/build/registersyslog.php | 1 |
3 files changed, 4 insertions, 1 deletions
@@ -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"; |
