fix old libffi
authorMichael Wallner <mike@php.net>
Thu, 19 Nov 2015 19:18:23 +0000 (20:18 +0100)
committerMichael Wallner <mike@php.net>
Thu, 19 Nov 2015 19:18:30 +0000 (20:18 +0100)
src/libffi.c

index d5158271b65879a31afccd66dbbbef6f922f5730..ee077af19b4b2af2cbba62b6c41dc2961355eaa8 100644 (file)
@@ -152,7 +152,7 @@ static inline void PSI_LibffiCallInitClosure(PSI_Context *C, PSI_LibffiCall *cal
                        call->code);
 
 #elif PSI_HAVE_FFI_PREP_CLOSURE
-       rc = ffi_prep_closure(data->code, &context->signature, psi_ffi_handler, data);
+       rc = ffi_prep_closure(call->code, &context->signature, psi_ffi_handler, impl);
 #else
 # error "Neither ffi_prep_closure() nor ffi_prep_closure_loc() available"
 #endif