Skip to content

chore: release PHP# 0.4.0 with mago 0.4.0 - #180

Merged
heyJordanParker merged 1 commit into
masterfrom
chore/release-0.4.0
Oct 19, 2026
Merged

heyJordanParker merged 1 commit into
masterfrom
chore/release-0.4.0

Conversation

@heyJordanParker

Copy link
Copy Markdown
Owner

Problem

PHP# v1 is feature complete on master, and the tag v0.4.0 releases it. .github/workflows/release.yml fails unless PHP_SHARP_VERSION in ext/sharp/php_sharp.h and the version in sharp/mago/Cargo.toml both equal the tag, and both are 0.3.1. Mago's docs tell users to install 0.3.1, and its extension docs require heyjordanparker/mago-sharp ^0.3, which Composer reads as below 0.4.0.

Solution

  • php_sharp.h defines PHP_SHARP_VERSION "0.4.0", so php --ri sharp reports Version => 0.4.0, and ri_sharp.phpt expects it.
  • php sharp/mago/scripts/set-version.php 0.4.0 sets Mago's manifest, every Mago package in Cargo.lock, and its install, configuration, upgrading, extension and GitHub Actions docs to 0.4.0. The script now lists the extension and GitHub Actions docs, which the 0.3.1 release changed by hand.
  • The version pin examples in mago self-update --help and the configuration schema, and the tag example in install.sh, name 0.4.0.

Verification

  • sharp/bin/build, then php -n --ri sharp prints Version => 0.4.0.
  • sharp/bin/test Zend/tests/sharp/ri_sharp.phpt passes, after mago compile compiled 556 PHP# files.
  • The release mago that sharp/bin/test built prints mago 0.4.0 for mago --version.
  • git grep -n "0\.3\.1" lists third-party crates in Cargo.lock, upstream php-src files, and two slice records in docs/architecture/slices/ of what a past build printed.

Problem:
PHP# v1 is feature complete on master, and the tag v0.4.0 releases it.
release.yml fails unless PHP_SHARP_VERSION in ext/sharp/php_sharp.h and
the version in sharp/mago/Cargo.toml both equal the tag, and both are
0.3.1. Mago's docs tell users to install 0.3.1, and its extension docs
require heyjordanparker/mago-sharp ^0.3, which Composer reads as below
0.4.0, so an extension written from them refuses mago-sharp 0.4.0.

Solution:
- php_sharp.h defines PHP_SHARP_VERSION "0.4.0", so php --ri sharp and
  phpversion('sharp') report 0.4.0, and ri_sharp.phpt expects it.
- php sharp/mago/scripts/set-version.php 0.4.0 sets the version of
  Mago's manifest, of every Mago package in Cargo.lock, and of its
  install, configuration and upgrading docs. The script now also lists
  the extension and GitHub Actions docs, which the 0.3.1 release changed
  by hand.
- The version pin examples in self-update's help and the configuration's
  schema, and the tag example in install.sh, name 0.4.0.

.
├── Zend/tests/sharp/
│   └── ri_sharp.phpt                     <- Version => 0.4.0
├── ext/sharp/
│   └── php_sharp.h                       <- PHP_SHARP_VERSION "0.4.0"
└── sharp/mago/
    ├── Cargo.toml, Cargo.lock            <- every Mago package at 0.4.0
    ├── README.md                         <- --version=0.4.0
    ├── docs/content/{en,fr,zh}/
    │   ├── guide/                        <- 0.4.0 installs and exact pins, "0.4" minor pins
    │   ├── recipes/github-actions.md     <- mago-sharp:^0.4.0
    │   └── en/extensions/                <- mago-sharp ^0.4
    ├── scripts/
    │   ├── install.sh                    <- tag example v0.4.0
    │   └── set-version.php               <- lists the extension and GitHub Actions docs
    └── src/
        ├── commands/self_update.rs       <- pin examples 0.4 and 0.4.0
        └── config/mod.rs                 <- pin examples 0.4 and 0.4.0
@heyJordanParker
heyJordanParker merged commit f102315 into master Oct 19, 2026
23 checks passed
@heyJordanParker
heyJordanParker deleted the chore/release-0.4.0 branch November 3, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant