mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
[DOC] Deprecate define_syslog_variables() in 5.3
This commit is contained in:
parent
30173a8ec8
commit
12bd1eae9f
2
NEWS
2
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).
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user