[php-src] master: ext/session: Skip session lock test on Solaris

From: Date: Sun, 01 Nov 2026 16:08:22 +0000
Subject: [php-src] master: ext/session: Skip session lock test on Solaris
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-143164@lists.php.net to get a copy of this message
Author: Ilia Alshanetsky (iliaal) Date: 2026-11-01T11:03:58-05:00 Commit: https://github.com/php/php-src/commit/96cbae8f88e1d56bda11eaf2505564a0cedf45ec Raw diff: https://github.com/php/php-src/commit/96cbae8f88e1d56bda11eaf2505564a0cedf45ec.diff ext/session: Skip session lock test on Solaris Solaris has no flock(), and the fcntl() emulation takes per-process locks and needs a writable descriptor for LOCK_EX, so the test cannot observe the session file lock from the same process. Changed paths: M ext/session/tests/session_write_close_encode_failure.phpt Diff: diff --git a/ext/session/tests/session_write_close_encode_failure.phpt b/ext/session/tests/session_write_close_encode_failure.phpt index 1c562f401df2..409f2627a610 100644 --- a/ext/session/tests/session_write_close_encode_failure.phpt +++ b/ext/session/tests/session_write_close_encode_failure.phpt @@ -3,7 +3,12 @@ session_write_close() closes the save handler when encoding the session data fai --EXTENSIONS-- session --SKIPIF-- -<?php include('skipif.inc'); ?> +<?php +include('skipif.inc'); +if (PHP_OS_FAMILY === 'Solaris') { + die("skip Solaris flock() uses per-process fcntl() locks"); +} +?> --INI-- session.use_cookies=0 session.cache_limiter=

« previous php.cvs (#143164) next »