Chris Wright

Results 4 comments of Chris Wright

So I personally don't have any issues with a property assignment throwing. It's something other OO languages do all the time. However, I will concede that it's not "the PHP...

TL;DR: Probably no. It doesn't really make sense to support this as a built-in part of FFI, but there are other ways to do this. --- Resources are too complex...

FFI can be used with any arbitrary library, subject to the limitations outlined in the documentation for [`FFI::load()`](https://php.net/ffi.load)/[`FFI::cdef()`](https://php.net/ffi.cdef). There are a huge number of potential causes for a failure to...

As it stands this can be done be implementing your own [`Resource`](https://github.com/DaveRandom/Resume/blob/master/src/Resource.php), the bundled `FileResource` class does not enable you to do this but you could essentially copy/paste this and...