]> granicus.if.org Git - php/commitdiff
Bump FFI extension version to PHP_VERSION
authorPeter Kokot <peterkokot@gmail.com>
Mon, 18 Feb 2019 21:11:12 +0000 (22:11 +0100)
committerDmitry Stogov <dmitry@zend.com>
Wed, 20 Feb 2019 06:32:42 +0000 (09:32 +0300)
This simplifies bumping the FFI extension version.

ext/ffi/ffi.c
ext/ffi/php_ffi.h

index 9188ccc63f672bce0a8280f3aa246cf69544af6f..bda2997ca1ef4a3cd2ecf7ad8a00221eec969fb1 100644 (file)
@@ -4670,8 +4670,6 @@ ZEND_MINFO_FUNCTION(ffi)
 }
 /* }}} */
 
-#define ZEND_FFI_VERSION "0.1.0"
-
 static const zend_ffi_type zend_ffi_type_void = {.kind=ZEND_FFI_TYPE_VOID, .size=1, .align=1};
 static const zend_ffi_type zend_ffi_type_char = {.kind=ZEND_FFI_TYPE_CHAR, .size=1, .align=_Alignof(char)};
 static const zend_ffi_type zend_ffi_type_bool = {.kind=ZEND_FFI_TYPE_BOOL, .size=1, .align=_Alignof(uint8_t)};
index 35b512787546489e29068e3cee32cf51e784ec36..637c06405e12a8f9fb4e0e47f1f95e60234ea613 100644 (file)
@@ -19,6 +19,9 @@
 #ifndef PHP_FFI_H
 #define PHP_FFI_H
 
+#include "php_version.h"
+#define ZEND_FFI_VERSION PHP_VERSION
+
 extern zend_module_entry ffi_module_entry;
 #define phpext_ffi_ptr &ffi_module_entry