Skip to content

Conversation

eriklundin
Copy link
Contributor

Description:

Parse errors are classified as the highest log level (LOG_EMERG). This is problem since Centos/Fedora writes LOG_EMERG messages to all users:

https://src.fedoraproject.org/rpms/rsyslog/blob/master/f/rsyslog.conf#_59

LOG_EMERG is described as: "system is unusable". A php-script with a parse error would not in most cases render the system unstable. At most LOG_ERR or LOG_CRIT would be more suitable. Fatal errors are classified as LOG_ERR. Why not make parse errors the same level?

The source:
https://github.com/php/php-src/blob/PHP-7.3/main/main.c#L1300

The commit that changed this:

3edf7d9

Bug url:
https://bugs.php.net/bug.php?id=78656

@cmb69
Copy link
Member

cmb69 commented Oct 9, 2019

In my opinion, the LOG_EMERG is a bug, and should be fixed for PHP-7.2+.

@eriklundin
Copy link
Contributor Author

eriklundin commented Oct 9, 2019

Perhaps I was too modest in my approach to this. I would also consider this a bug. It's extremely frustrating receiving error messages in unrelated terminals.

@nikic
Copy link
Member

nikic commented Oct 9, 2019

Landing on 7.2 is fine.

@eriklundin
Copy link
Contributor Author

Why did the test fail?

@cmb69
Copy link
Member

cmb69 commented Oct 9, 2019

@eriklundin, AppVeyor test failure is intermittent (there are several test cases which are occasionally failing).

@cmb69
Copy link
Member

cmb69 commented Oct 9, 2019

Thanks for the bug report and the PR! Applied as 3164186.

@cmb69 cmb69 closed this Oct 9, 2019
@eriklundin eriklundin deleted the request-78656 branch October 10, 2019 05:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants