php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #39812 priority order in syslog() unclear
Submitted: 2006-12-13 10:24 UTC Modified: 2007-08-17 11:26 UTC
From: wv at xs2mail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: wv at xs2mail dot com
New email:
PHP Version: OS:

 

 [2006-12-13 10:24 UTC] wv at xs2mail dot com
Description:
------------
Table 1 in the documentation on the "syslog" function says "syslog() Priorities (in descending order)". The table starts with LOG_EMERG, which is defined as 0 (zero).

As is always the case with priority lists, one is easily misunderstood. If A has a higher priority than B, it means in this case A < B.

Suggested solution:
1) Place the values of the constants in the table explicitly.
2) or put an example in that shows how to compare priorities.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-08-17 11:26 UTC] vrana@php.net
LOG_EMERG has highest priority, LOG_DEBUG has lowest priority - the table really is in descending orded.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 08 23:01:32 2025 UTC