[php-src] PR #16327: Introduce FFI::Scope class

From: Date: Wed, 09 Oct 2024 13:37:39 +0000
Subject: [php-src] PR #16327: Introduce FFI::Scope class
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-29112@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/16327 Author: dstogov This is a refactoring of user level ext/FFI API. The most important changes are in `ffi.stub.php`. Now FFI::cdef, FFI::load and FFI::scope return an instance of new FFI\Scope class instead of FFI. There us no way to instantiate an object of class FFI. Methods FFI::new, FFI:cast, FFI::type may be called only statically. The deprecation introduced by https://wiki.php.net/rfc/ffi-non-static-deprecated is removed. FFI\Scope::new, FFI\Scope::cast, FFI\Scope::type can't be called as static methods. Most tests are not affcted by this change, but of course this may break some user code.

« previous php.git-pulls (#29112) next »