com php-src: Allow incomplete array variables - extern const char * const sys_errlist[]: ext/ffi/ffi.c

From: Date: Thu, 28 Mar 2019 21:15:12 +0000
Subject: com php-src: Allow incomplete array variables - extern const char * const sys_errlist[]: ext/ffi/ffi.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-105386@lists.php.net to get a copy of this message
Commit: 94e3db64b2070c21e66c7b047940e2e5489137d5 Author: Dmitry Stogov <dmitry@zend.com> Fri, 29 Mar 2019 00:15:12 +0300 Parents: a3e52afebe77517ca10d98ba57fefe3f178d56b6 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=94e3db64b2070c21e66c7b047940e2e5489137d5 Log: Allow incomplete array variables - extern const char * const sys_errlist[] Changed paths: M ext/ffi/ffi.c Diff: diff --git a/ext/ffi/ffi.c b/ext/ffi/ffi.c index e8061a4..8790c99 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); }

« previous php.cvs (#105386) next »