Skip to content

Releases: davidcole1340/ext-php-rs

ext-php-rs-v0.14.2

13 Jul 19:39
175a065
Compare
Choose a tag to compare

Added

  • Make Sapi work with ZTS builds (by @Qard) [#488]

Fixed

  • (clippy) Fix new clippy rule (by @Xenira)
  • (macro) Allow multiple refs with self_ (by @Xenira) [#506]
  • (macro) Fix self_ reference when multiple method arguments supplied (by @Xenira) [#504]
  • (stubs) Include doc comments in __construct() stubs (by @Xenira) [#497]

Other

  • (args) Add missing embed feature guard (by @Xenira) [#501]
  • (deps) Upgrade bindgen to v0.70 (by @Xenira)
  • (release-plz) Only run release workflow on build and lint success (by @Xenira)

ext-php-rs-derive-v0.11.2

13 Jul 19:38
175a065
Compare
Choose a tag to compare

Fixed

  • (macro) Allow multiple refs with self_ (by @Xenira) [#506]
  • (macro) Fix self_ reference when multiple method arguments supplied (by @Xenira) [#504]
  • (stubs) Include doc comments in __construct() stubs (by @Xenira) [#497]

ext-php-rs-v0.14.1

06 Jul 12:40
cb99b0b
Compare
Choose a tag to compare

Added

  • (error) Deprecate E_USER_ERROR in PHP 8.4 (by @Xenira) [#476]

Fixed

Other

ext-php-rs-derive-v0.11.1

06 Jul 12:39
cb99b0b
Compare
Choose a tag to compare

Other

ext-php-rs-v0.14.0

04 Jul 17:18
0ce066d
Compare
Choose a tag to compare

BREAKING CHANGES

  • (macro) [breaking] Change rename defaults to match psr (by @Xenira) [#189] [#436]

Methods and Properties are renamed to camelCase by default. Classes to PascalCase, constants to UPPER_CASE and functions to snake_case

  • (class) [breaking] Generate correct stubs for extends and implements (by @Xenira) [#326]

extends and implements attributes now require the stub property containing the class/interface name to be used in stubs.

  • (macro) [breaking] Uinify attributes in #[php] attribute (by @Xenira) [#391]

Attributes like #[prop], #[rename], etc. have been moved to #[php] attributes like #[php(prop)], #[php(name = "Foo")], #[php(change_case = CamelCase)], etc.

The old macros were dependent on execution order and have been causing trouble with language servers. They are replaced by a builder. See the migration guide at https://davidcole1340.github.io/ext-php-rs/migration-guides/v0.14.html for information on how to migrate.

Added

  • (alloc) Add estrdup (by @Qard) [#444]
  • (builders) Add IniBuilder (by @Qard) [#442]
  • (cargo-php) --features, --all-features, --no-default-features (by @kakserpom)
  • (ffi) Allow definging additional bindings (by @Xenira) [#403]
  • (globals) Add CompilerGlobals (by @Qard) [#445]
  • (sapi) Expand SapiBuilder (by @Qard) [#471]
  • (zts) Set lock per thread on zts build (#408) (by @joelwurtz) [#408]
  • Argument defaults can be any expr valid in const scope (by @alekitto) [#433]

Fixed

  • (FunctionBuilder) Remove null type from non-nullable types void and mixed (by @kakserpom) [#457]
  • (args) Fix variadic args (by @Xenira) [#337]
  • (array) Cast numeric string keys into zend_ulong and allow negative keys (by @kakserpom) [#453] [#454] [#456]
  • (build) Take only the first line of which/where when searching for php executable (by @alekitto) [#430]
  • (cargo-php) get_ext_dir()/get_php_ini() stdout noise tolerance (by @kakserpom) [#459]
  • (clippy) Fix new clippy findings (by @Xenira)
  • (globals) Split sapi header value containing : correctly (by @Qard) [#441]
  • (macro) Add missing static flags in php_impl macro (by @Norbytus) [#419]
  • (macro) Add missing separator pipe in flags (by @Norbytus) [#412]
  • Ensure update_bindings runs as amd64 (by @Qard) [#446] [#448]
  • Fix object access in object write/read/has_property handlers (by @alekitto) [#313] [#438]

Other

  • (bindings) Update docsrs_bindings.rs to PHP 8.4 (by @Xenira) [#447]
  • (bindings) Add tooling to generate docsrs_bindings.rs (by @Xenira) [#443]
  • (build) Fix typo in build.rs (by @Xenira) [#439]
  • (cargo-php) Add locked option to install guide (#370) (by @Xenira) [#370] [#314]
  • (cli) Enforce docs for cli (by @Xenira) [#392]
  • (clippy) Apply pedantic rules (by @Xenira) [#418]
  • (coverage) Add coverage badge (by @Xenira)
  • (coverage) Ignore release pr (by @Xenira)
  • (coverage) Add coverage reporting (by @Xenira) [#415]
  • (dependabot) Remove redundant directories included in workspace (#386) (by @Xenira) [#386]
  • (dependabot) Add cargo ecosystem (#378) (by @Xenira) [#378]
  • (deps) Update cargo_metadata requirement from 0.19 to 0.20 (#437) (by @dependabot[bot]) [#437]
  • (deps) Update zip requirement from 3.0 to 4.0 (#435) (by @dependabot[bot]) [#435]
  • (deps) Update zip requirement from 2.2 to 3.0 (#432) (by @dependabot[bot]) [#432]
  • (deps) Update cargo_metadata requirement from 0.15 to 0.19 (#404) (by @dependabot[bot]) [#404]
  • (deps) Update syn and darling (#400) (by @Xenira) [#400]
  • (deps) Update ureq requirement from 2.4 to 3.0 (#379) (by @dependabot[bot]) [#379]
  • (deps) Update libloading requirement from 0.7 to 0.8 (#389) (by @dependabot[bot]) [#389]
  • (deps) Update dialoguer requirement from 0.10 to 0.11 (#387) (by @dependabot[bot]) [#387]
  • (deps) Update zip requirement from 0.6 to 2.2 (#381) (by @dependabot[bot]) [#381]
  • (deps) Bump JamesIves/github-pages-deploy-action (#374) (by @dependabot[bot]) [#374]
  • (github) Add issue and pr templates (by @Xenira) [#455]
  • (guide) Directly include doc comments (by @Xenira)
  • (hooks) Add check for outdated macro documentation (by @Xenira) [#466]
  • (integration) Reorganise integration tests (by @Xenira) [#414]
  • (macro) Change rename to change_case (by @Xenira)
  • (macro) Improve name vs rename documentation (by @Xenira) [#422]
  • (macro) Use #[php] attribute for startup function (by @Xenira) [#423]
  • (macro) Trait rename for general and method names (by @Norbytus) [#420]
  • (macro) Update documentation for builder pattern (by @Xenira)
  • (macro) Add stubs for new builder pattern (by @Xenira) [#183]
  • (php-tokio) Move documentation into separate section (by @Xenira) [#322]
  • (release-plz) Move breaking changes to section on top of changelog (#393) (by @Xenira) [#393]
  • (sapi) Use builder pattern in sapi test (by @Xenira)
  • (test) Fix embed test on php 8.4 (#396) (by @joelwurtz) [#396]
  • (test) Disable inline example tests for macos unstable (#377) (by @Xenira) [#377]
  • Add git hooks and CONTRIBUTING.md (by @Xenira) [#475]
  • Improve test reliability and ease of use (by...
Read more

ext-php-rs-derive-v0.11.0

04 Jul 17:17
0ce066d
Compare
Choose a tag to compare

BREAKING CHANGES

  • (macro) [breaking] Change rename defaults to match psr (by @Xenira) [#189] [#436]

Methods and Properties are renamed to camelCase by default. Classes to PascalCase, constants to UPPER_CASE and functions to snake_case

  • (class) [breaking] Generate correct stubs for extends and implements (by @Xenira) [#326]

extends and implements attributes now require the stub property containing the class/interface name to be used in stubs.

  • (macro) [breaking] Uinify attributes in #[php] attribute (by @Xenira) [#391]

Attributes like #[prop], #[rename], etc. have been moved to #[php] attributes like #[php(prop)], #[php(name = "Foo")], #[php(change_case = CamelCase)], etc.

The old macros were dependent on execution order and have been causing trouble with language servers. They are replaced by a builder. See the migration guide at https://davidcole1340.github.io/ext-php-rs/migration-guides/v0.14.html for information on how to migrate.

Added

  • Argument defaults can be any expr valid in const scope (by @alekitto) [#433]

Fixed

  • (args) Fix variadic args (by @Xenira) [#337]
  • (macro) Add missing static flags in php_impl macro (by @Norbytus) [#419]
  • (macro) Add missing separator pipe in flags (by @Norbytus) [#412]

Other

  • (bindings) Add tooling to generate docsrs_bindings.rs (by @Xenira) [#443]
  • (cargo-php) Add locked option to install guide (#370) (by @Xenira) [#370] [#314]
  • (clippy) Apply pedantic rules (by @Xenira) [#418]
  • (coverage) Add coverage badge (by @Xenira)
  • (deps) Update syn and darling (#400) (by @Xenira) [#400]
  • (guide) Directly include doc comments (by @Xenira)
  • (macro) Change rename to change_case (by @Xenira)
  • (macro) Use #[php] attribute for startup function (by @Xenira) [#423]
  • (macro) Trait rename for general and method names (by @Norbytus) [#420]
  • (macro) Update documentation for builder pattern (by @Xenira)
  • (macro) Add stubs for new builder pattern (by @Xenira) [#183]
  • Add git hooks and CONTRIBUTING.md (by @Xenira) [#475]
  • Typo in README.md (by @kakserpom)

Thanks to the contributors for this release:

cargo-php-v0.1.11

04 Jul 17:18
0ce066d
Compare
Choose a tag to compare

Added

  • (cargo-php) --features, --all-features, --no-default-features (by @kakserpom)

Fixed

  • (cargo-php) get_ext_dir()/get_php_ini() stdout noise tolerance (by @kakserpom) [#459]
  • (clippy) Fix new clippy findings (by @Xenira)

Other

Thanks to the contributors for this release:

ext-php-rs-v0.13.1

15 Feb 11:09
13623f5
Compare
Choose a tag to compare

Fixed

Other

ext-php-rs-v0.13.0

08 Feb 08:05
c3c0c92
Compare
Choose a tag to compare

Fixed

If you used http_request_vars() before it will now panic until a proper implementation is found.

Other

Thanks to the contributors for this release:

ext-php-rs-derive-v0.10.2

08 Feb 08:05
c3c0c92
Compare
Choose a tag to compare

Other