Commit 32f514962aa for php
commit 32f514962aa31108220f6cc9fcae7635cf53274e
Author: Jakub Zelenka <bukka@php.net>
Date: Fri Sep 25 17:45:20 2026 +0200
Zend tests: skip syslog() in the arginfo/zpp mismatch test
With weak typing syslog(null, null) is syslog(0, ""), and priority 0 is
LOG_EMERG. journald broadcasts emergency messages to every logged in
terminal, so each run of the test printed a "Broadcast message from
systemd-journald" banner in all terminals. Skip it like error_log() and
mail(), which the test already leaves out for their side effects.
diff --git a/Zend/tests/arginfo_zpp_mismatch.inc b/Zend/tests/arginfo_zpp_mismatch.inc
index 5b2711fdb63..0ac5df8ceff 100644
--- a/Zend/tests/arginfo_zpp_mismatch.inc
+++ b/Zend/tests/arginfo_zpp_mismatch.inc
@@ -18,6 +18,7 @@ function skipFunction($function): bool {
|| (is_string($function) && str_starts_with($function, 'ob_'))
|| $function === 'output_add_rewrite_var'
|| $function === 'error_log'
+ || $function === 'syslog'
/* may spend a lot of time waiting for connection timeouts */
|| (is_string($function) && str_contains($function, 'connect'))
|| (is_string($function) && str_starts_with($function, 'snmp'))