com php-src: Ignore "__format__" attribute: e xt/ffi/ffi.c
| From: | Dmitry Stogov | Date: | Thu, 28 Mar 2019 21:52:39 +0000 |
| Subject: | com php-src: Ignore "__format__" attribute: e xt/ffi/ffi.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-105388@lists.php.net to get a copy of this message | ||
Commit: adf930c038c0d73f133f3e851d2bd2d827f0ebb2
Author: Dmitry Stogov <dmitry@zend.com> Fri, 29 Mar 2019 00:52:39 +0300
Parents: 94e3db64b2070c21e66c7b047940e2e5489137d5
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=adf930c038c0d73f133f3e851d2bd2d827f0ebb2
Log:
Ignore "__format__" attribute
Changed paths:
M ext/ffi/ffi.c
Diff:
diff --git a/ext/ffi/ffi.c b/ext/ffi/ffi.c
index 8790c99..5ee1cad 100644
--- a/ext/ffi/ffi.c
+++ b/ext/ffi/ffi.c
@@ -6003,6 +6003,8 @@ void zend_ffi_add_attribute_value(zend_ffi_dcl *dcl, const char *name, size_t
na
}
} else if (name_len == sizeof("format")-1 && memcmp(name, "format",
sizeof("format")-1) == 0) {
/* ignore */
+ } else if (name_len == sizeof("__format__")-1 && memcmp(name,
"__format__", sizeof("__format__")-1) == 0) {
+ /* ignore */
} else if (name_len == sizeof("deprecated")-1 && memcmp(name,
"deprecated", sizeof("deprecated")-1) == 0) {
/* ignore */
} else {