From 94e3db64b2070c21e66c7b047940e2e5489137d5 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Fri, 29 Mar 2019 00:15:12 +0300 Subject: [PATCH] Allow incomplete array variables - extern const char * const sys_errlist[] --- ext/ffi/ffi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ffi/ffi.c b/ext/ffi/ffi.c index e8061a4682..8790c99c60 100644 --- a/ext/ffi/ffi.c +++ b/ext/ffi/ffi.c @@ -5832,7 +5832,7 @@ void zend_ffi_declare(const char *name, size_t name_len, zend_ffi_dcl *dcl) /* { zend_ffi_type *type; type = ZEND_FFI_TYPE(dcl->type); - if (zend_ffi_validate_type(type, 0) != SUCCESS) { + if (zend_ffi_validate_type(type, 1) != SUCCESS) { zend_ffi_cleanup_dcl(dcl); LONGJMP(FFI_G(bailout), FAILURE); } -- 2.50.1