[DOC] Deprecate define_syslog_variables() in 5.3

This commit is contained in:
Kalle Sommer Nielsen 2008-10-15 18:41:57 +00:00
parent 30173a8ec8
commit 12bd1eae9f
3 changed files with 4 additions and 1 deletions

2
NEWS
View File

@ -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).

View File

@ -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);
}

View File

@ -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";