Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions packages/php-wasm/node-builds/5-2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# @php-wasm/node-5-2

PHP 5.2 WebAssembly binaries for Node.js (legacy).

This package contains:

- JSPI and Asyncify variants of PHP 5.2 compiled to WebAssembly

No bundled extensions (intl, Xdebug, Redis, Memcached) — calling the
corresponding getter functions throws.
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar: ‘getter functions throws’ should be ‘getter functions throw’.

Suggested change
corresponding getter functions throws.
corresponding getter functions throw.

Copilot uses AI. Check for mistakes.

## Installation

```bash
npm install @php-wasm/node-5-2
```

## Usage

Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The example uses await at top level, which will fail in many Node.js setups (CommonJS or ESM without top-level await). Consider wrapping in an async function (or explicitly stating the required module system) to make the snippet reliably usable.

Copilot uses AI. Check for mistakes.
```typescript
import { getPHPLoaderModule } from '@php-wasm/node-5-2';

const loaderModule = await getPHPLoaderModule();
```

## Related Packages

- [@php-wasm/node](https://www.npmjs.com/package/@php-wasm/node) - Main package (requires version packages)
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The phrase “requires version packages” is ambiguous. Consider clarifying what consumers should install/import (e.g., ‘requires a versioned build package like @php-wasm/node-5-2 / @php-wasm/node-8-5’) to reduce confusion.

Suggested change
- [@php-wasm/node](https://www.npmjs.com/package/@php-wasm/node) - Main package (requires version packages)
- [@php-wasm/node](https://www.npmjs.com/package/@php-wasm/node) - Main package (requires a versioned build package such as `@php-wasm/node-5-2`)

Copilot uses AI. Check for mistakes.
- [@php-wasm/universal](https://www.npmjs.com/package/@php-wasm/universal) - Universal PHP.wasm bindings

## License

GPL-2.0-or-later
2 changes: 1 addition & 1 deletion packages/php-wasm/node-builds/5-2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@php-wasm/node-5-2",
"version": "3.1.19",
"version": "3.1.20",
"description": "PHP 5.2 WebAssembly binaries for node (legacy)",
"repository": {
"type": "git",
Expand Down
33 changes: 33 additions & 0 deletions packages/php-wasm/web-builds/5-2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# @php-wasm/web-5-2

PHP 5.2 WebAssembly binaries for the web (legacy).

This package contains:

- JSPI and Asyncify variants of PHP 5.2 compiled to WebAssembly

No bundled extensions (intl, Xdebug, Redis, Memcached) — calling the
corresponding getter functions throws.
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar: ‘getter functions throws’ should be ‘getter functions throw’.

Suggested change
corresponding getter functions throws.
corresponding getter functions throw.

Copilot uses AI. Check for mistakes.

## Installation

```bash
npm install @php-wasm/web-5-2
```

## Usage

Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The example uses await at top level, which will fail in many CommonJS / non-top-level-await environments. Consider wrapping in an async function (or explicitly noting that the example requires ESM + top-level await) so users can copy/paste successfully.

Copilot uses AI. Check for mistakes.
```typescript
import { getPHPLoaderModule } from '@php-wasm/web-5-2';

const loaderModule = await getPHPLoaderModule();
```

## Related Packages

- [@php-wasm/web](https://www.npmjs.com/package/@php-wasm/web) - Main package (requires version packages)
Copy link

Copilot AI Apr 17, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The phrase “requires version packages” is ambiguous. Consider clarifying what consumers should install/import (e.g., ‘requires a versioned build package like @php-wasm/web-5-2 / @php-wasm/web-8-5’) to reduce confusion.

Suggested change
- [@php-wasm/web](https://www.npmjs.com/package/@php-wasm/web) - Main package (requires version packages)
- [@php-wasm/web](https://www.npmjs.com/package/@php-wasm/web) - Main package (requires a versioned build package such as `@php-wasm/web-5-2` or `@php-wasm/web-8-5`)

Copilot uses AI. Check for mistakes.
- [@php-wasm/universal](https://www.npmjs.com/package/@php-wasm/universal) - Universal PHP.wasm bindings

## License

GPL-2.0-or-later
2 changes: 1 addition & 1 deletion packages/php-wasm/web-builds/5-2/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@php-wasm/web-5-2",
"version": "3.1.19",
"version": "3.1.20",
"description": "PHP 5.2 WebAssembly binaries for web (legacy)",
"repository": {
"type": "git",
Expand Down
Loading