From: Dmitry Stogov Date: Thu, 28 Mar 2019 21:15:12 +0000 (+0300) Subject: Allow incomplete array variables - extern const char * const sys_errlist[] X-Git-Tag: php-7.4.0alpha1~650 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=94e3db64b2070c21e66c7b047940e2e5489137d5;p=php Allow incomplete array variables - extern const char * const sys_errlist[] --- 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); }