The RFC proposes ffi.enable=preload by default, that enables FFI only for CLI
and preloaded scripts.
Thanks. Dmitry.
From: Sara Golemon
Sent: Thursday, December 13, 2018 18:53
To: Anatol Belski
Cc: Dmitry Stogov; PHP internals
Subject: Re: [PHP-DEV] [RFC] FFI -
Benjamin said:
(...) Regarding your suggestion, unfortunately not, (array) also returns
> default values for properties:
Marco said:
Yes, but that's where you should unset all properties upfront:
> class A {
> protected $a = 1;
> }
> $r = new ReflectionClass('A');
> $a = $r->newInstanceWithout