Skip to content

Releases: extphprs/ext-php-rs

Version 0.8.1

11 Oct 22:18

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.8.0...v0.8.1

Version 0.8.0

14 Aug 10:26
70f8bad

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.7.4...v0.8.0

Version 0.7.4

17 Mar 10:59

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.7.3...v0.7.4

Version 0.7.3

13 Dec 08:37

Choose a tag to compare

  • Upgrade clap to 3.0.0-rc3. #113
  • Build properties hashmap once and cache inside class metadata. #114
  • Add impl FromZval for &Zval and impl FromZvalMut for &mut Zval.
  • Add has_numerical_keys and has_sequential_keys to ZendHashTable. #115

Thanks to the following contributors:

Version 0.7.2

27 Nov 00:00

Choose a tag to compare

  • Add preliminary PHP 8.1 support. #109
    • Extensions should now compile for PHP 8.1. This doesn't implement any of the
      new PHP 8.1 features.
  • Add anyhow cargo feature to implement
    From<anyhow::Error> for PhpException. #110
  • Made ClassMetadata: Send + Sync. #111
  • Fixed registering constants with expressions. #112

Version 0.7.1

21 Nov 04:38

Choose a tag to compare

  • Ensure stable ABI between cargo-php and downstream extensions. #108
    • ext-php-rs versions used when compiling CLI and extension are now
      compared.

Version 0.7.0

20 Nov 01:36

Choose a tag to compare

  • Disabled serialization and unserialization of Rust structs exported as PHP
    classes. #105
    • You can't serialize an associated Rust struct so this would have never
      worked, but disabling them fixes crashes when running in an environment like
      psysh.
  • Replaced boxed module inside ModuleBuilder with in-struct module.
  • Fixed builds failing on Linux AArch64 systems. #106
  • Added cargo-php for creating stubs, installing and uninstalling extensions.
    #107
    • Check out the guide for more information on this.

Version 0.6.0

10 Oct 10:22

Choose a tag to compare

  • Reorganized project. #101
    • Changed (almost all) module paths. Too many changes to list them all, check
      out the docs.
    • Removed skel project.
  • Allow methods to accept references to ZendClassObject<T> instead of self.
    #103

Version 0.5.3

06 Oct 15:25

Choose a tag to compare

  • Fixed docs.rs PHP bindings file.

Version 0.5.2

06 Oct 15:13

Choose a tag to compare

  • Constructors that return Self can now be added to classes. #83
    • Default is no longer required to be implemented on classes, however, a
      constructor must be specified if you want to construct the class from PHP.
    • Constructors can return Self or Result<Self, E>, where
      E: Into<PhpException>.
  • Added FromZendObject and IntoZendObject traits. #74
  • Added #[derive(ZvalConvert)] derive macro. Derives IntoZval and FromZval
    on arbitrary structs and enums. #78
  • Added ZBox<T>, similar to Box<T>, to allocate on the Zend heap. #94
  • Changed execution data functions to take mutable references. #100
  • &mut T is now valid as a function parameter. #100

Thanks to the contributors for this release: