PHP Ffi Resources