Skip to content

Fixing memory leaks and deprecations#545

Merged
stesie merged 4 commits into
phpv8:php8from
redbullmarky:php8
Apr 19, 2026
Merged

Fixing memory leaks and deprecations#545
stesie merged 4 commits into
phpv8:php8from
redbullmarky:php8

Conversation

@redbullmarky

Copy link
Copy Markdown
Collaborator

This one has fixes for a few outstanding items, generally relating to memory leaks or deprecations/compatibility.

All tests pass (as do our own, and we have a fair few, albeit coving specific weird edge cases and things specific to the way we do things). Hopefully this is ok, @stesie ? Hoping to look at a few more too and (finally) perhaps look at the 3.0.0 thing. We've been building against V8 AND libnode, both working well, so perhaps I can get some of the docs polished in the next batch.

@redbullmarky redbullmarky requested a review from stesie April 13, 2026 22:11
@stesie stesie merged commit 8a39efa into phpv8:php8 Apr 19, 2026
5 checks passed
@stesie

stesie commented Apr 19, 2026

Copy link
Copy Markdown
Member

@redbullmarky once more thank you for the sustained effort you're putting in this.
Also taking time to fix the Alpine build 🙇

standa added a commit to standa/php-v8js that referenced this pull request Jun 4, 2026
Declares the extension as type=php-ext so pie.phar (PHP Installer for
Extensions) can install it directly, and so the package is discoverable
on Packagist as phpv8/v8js.

Key fields:

- extension-name: v8js — the loaded extension name. (Set explicitly
  rather than auto-derived from the Composer package name, in case the
  vendor/package shape changes in the future.)
- configure-options: [{name: with-v8js, needs-value: true}] — mirrors
  the single --with-v8js[=DIR] macro in config.m4.
- download-url-method: [pre-packaged-binary, composer-default] — when
  prebuilt .so assets are attached to a release (see the new release.yml
  workflow), PIE downloads those; otherwise it falls back to a Composer-
  default git-archive source build.
- os-families-exclude: [windows] — Windows support would require
  prebuilt DLLs via php/php-windows-builder; not part of this change.
- require.php: ^8.1 — matches what this branch supports after PR phpv8#545.
  PHP 8.0 is EOL (Nov 2023).

No source files are touched; this is a packaging-only addition.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants