Re: [PHP-DEV] [RFC] FFI - Foreign Function Interface

2018-12-14 Thread Dmitry Stogov
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 -

Re: [PHP-DEV] Typed properties - feature request

2018-12-14 Thread Benjamin Morel
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