• 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: SELECT
CHANGE BRANCH
x
  • No branch selected
  • check-php-syntax
  • compat/php84
  • improv/update-test-matrix
  • main
  • 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 master
  • 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
39421537986 phpseclib-4 Merge 1e975ef2b into 4ba6ebb62 Pull #20 20 Oct 2026 12:21PM UTC web-flow github
71.78
39421537986 phpseclib-4 Merge 1e975ef2b into 4ba6ebb62 Pull #20 20 Oct 2026 12:21PM UTC web-flow github
71.6
39421049057 phpseclib-4 Merge c8a4f9544 into 4ba6ebb62 Pull #20 20 Oct 2026 12:19PM UTC web-flow github
72.03
37470571286 phpseclib-4 Merge dadb2d08d into df77d609a Pull #20 13 Oct 2026 02:36PM UTC web-flow github
72.03
15656158590 main Check PHP syntax (#19) push 14 Jun 2025 09:13PM UTC web-flow github
69.02
15656141275 check-php-syntax Merge 0eee3e601 into 113e7bf04 Pull #19 14 Jun 2025 09:11PM 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
15656117591 switch-to-main Merge 63822eea1 into e2a859994 Pull #18 14 Jun 2025 09:08PM UTC web-flow github
69.48
15637597867 master Fix implicitly nullable parameter declarations (#16) * Fix implicitly nullable parameter declarations * Bump minimum PHP requirement to 7.1 * Update Test Workflow * Revert phpseclib constraint change push 13 Jun 2025 02:59PM 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