• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mlocati / ocsp
72%
master: 69%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Repo Added 16 Jan 2023 10:27AM UTC
Files 41
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH main
branch: main
CHANGE BRANCH
x
Reset
  • main
  • check-php-syntax
  • compat/php84
  • improv/update-test-matrix
  • master
  • phpseclib-4
  • switch-to-main

20 Oct 2026 12:23PM UTC coverage: 72.029% (+3.0%) from 69.016%
39421877225

push

github

web-flow
Add support for phpseclib 4 (#20)

* Add support for phpseclib 4

phpseclib 4 moved its classes to the phpseclib4 namespace. Detect it before falling back to phpseclib3 and phpseclib 2, and allow ^4 in composer.json.

* Test against PHP 8.5

curl_close() is deprecated as of PHP 8.5 and has no effect since PHP 8.0, so only call it on older versions.

* Test OCSP against a local test CA

Public CAs are phasing out OCSP, which makes the remote tests unreliable. Add a test CA (with a good and a revoked certificate) and test against it in two ways:
- recorded OpenSSL requests and responses, which need nothing but PHP;
- the OpenSSL OCSP responder answering requests built by this library, skipped when openssl is not available.

test/assets/ocsp/generate.sh regenerates all of these assets.

* Replace google.com in the remote OCSP test

Google's certificates no longer include an OCSP responder URL. Use DigiCert's valid demo certificate instead, and skip the remote test when a certificate has no OCSP responder URL.

* Nest the phpseclib class_exists checks

---------

Co-authored-by: Michele Locati <michele@locati.it>

3 of 4 new or added lines in 1 file covered. (75.0%)

1 existing line in 1 file now uncovered.

497 of 690 relevant lines covered (72.03%)

10.51 hits per line

Relevant lines Covered
Build:
Build:
690 RELEVANT LINES 497 COVERED LINES
10.51 HITS PER LINE
Source Files on main
  • Tree
  • List 41
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
39421877225 main Add support for phpseclib 4 (#20) * Add support for phpseclib 4 phpseclib 4 moved its classes to the phpseclib4 namespace. Detect it before falling back to phpseclib3 and phpseclib 2, and allow ^4 in composer.json. * Test against PHP 8.5 curl_... push 20 Oct 2026 12:24PM UTC web-flow github
72.03
15656158590 main Check PHP syntax (#19) push 14 Jun 2025 09:13PM UTC web-flow github
69.02
15656130622 main Switch from master to main (#18) push 14 Jun 2025 09:09PM UTC web-flow github
69.48
See All Builds (31)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc