Skip to content

2.0.5

Latest

Choose a tag to compare

@maksimovic maksimovic released this 17 Mar 08:35
· 2 commits to master since this release
f798295

PHP 8.5 support, bug fix, and CI improvements

Bug Fix

  • Fixed Semaphore::remove() on PHP 8+ — the method was broken on PHP 8.0+ due to semaphore handles changing from resources to SysvSemaphore objects, causing is_resource() to return false. Now correctly handles both PHP 7 and 8+ using sem_remove().

PHP 8.5 Support

  • Added PHP 8.5 to the CI test matrix
  • Fixed implicit nullable parameter deprecation in Process::__construct() (string $name = null -> ?string $name = null)

CI Improvements

  • Replaced Docker-based php-actions/composer and php-actions/phpunit with direct CLI calls for faster builds
  • Code coverage now runs only on PHP 8.5 (other matrix jobs skip Xdebug)
  • CI triggers on push to master + pull requests (no more duplicate runs)
  • Bumped actions/checkout to v4, codecov-action to v4
  • PHP extensions installed via setup-php instead of the phpunit action

Test Coverage

  • Added tests for Process::getPid(), name(), isStarted(), isStopped()
  • Added tests for PipeQueue empty queue reads
  • Added tests for Semaphore double-remove error handling
  • Fixed assertFileDoesNotExist() for PHPUnit 8.5 compatibility (PHP 7.2)

What's Changed

  • PHP 8.5 support, CI improvements, and test coverage by @maksimovic in #5

Full Changelog: 2.0.3...2.0.5