[php-src] PHP-8.4: Zend tests: skip syslog() in the arginfo/zpp mismatch test
| From: | Jakub Zelenka | Date: | Fri, 25 Sep 2026 16:04:54 +0000 |
| Subject: | [php-src] PHP-8.4: Zend tests: skip syslog() in the arginfo/zpp mismatch test | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141570@lists.php.net to get a copy of this message | ||
Author: Jakub Zelenka (bukka)
Date: 2026-09-25T18:04:42+02:00
Commit: https://github.com/php/php-src/commit/32f514962aa31108220f6cc9fcae7635cf53274e
Raw diff: https://github.com/php/php-src/commit/32f514962aa31108220f6cc9fcae7635cf53274e.diff
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.
Changed paths:
M Zend/tests/arginfo_zpp_mismatch.inc
Diff:
diff --git a/Zend/tests/arginfo_zpp_mismatch.inc b/Zend/tests/arginfo_zpp_mismatch.inc
index 5b2711fdb630..0ac5df8ceffd 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'))