com php-src: Simplify even more - use PHP_VERSION directly : ext/ffi/ffi.c ext/ffi/php_ffi.h
| From: | Dmitry Stogov | Date: | Wed, 20 Feb 2019 06:32:42 +0000 |
| Subject: | com php-src: Simplify even more - use PHP_VERSION directly : ext/ffi/ffi.c ext/ffi/php_ffi.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-104765@lists.php.net to get a copy of this message | ||
Commit: e765e9a8e0814e2f0681aadac7c09a576ece02fe
Author: Peter Kokot <peterkokot@gmail.com> Mon, 18 Feb 2019 22:39:00 +0100
Committer: Dmitry Stogov <dmitry@zend.com> Wed, 20 Feb 2019 09:32:42 +0300
Parents: e5fe8ad6e56336d1071e84a8f5a38487a54e0491
Branches: PHP-7.4 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e765e9a8e0814e2f0681aadac7c09a576ece02fe
Log:
Simplify even more - use PHP_VERSION directly
Changed paths:
M ext/ffi/ffi.c
M ext/ffi/php_ffi.h
Diff:
diff --git a/ext/ffi/ffi.c b/ext/ffi/ffi.c
index bda2997..b42baec 100644
--- a/ext/ffi/ffi.c
+++ b/ext/ffi/ffi..c
@@ -4774,7 +4774,7 @@ zend_module_entry ffi_module_entry = {
NULL, /* ZEND_RINIT - Request initialization */
ZEND_RSHUTDOWN(ffi), /* ZEND_RSHUTDOWN - Request shutdown */
ZEND_MINFO(ffi), /* ZEND_MINFO - Module info */
- ZEND_FFI_VERSION, /* Version */
+ PHP_FFI_VERSION, /* Version */
ZEND_MODULE_GLOBALS(ffi),
ZEND_GINIT(ffi),
ZEND_GSHUTDOWN(ffi),
diff --git a/ext/ffi/php_ffi.h b/ext/ffi/php_ffi.h
index 637c064..35b5127 100644
--- a/ext/ffi/php_ffi.h
+++ b/ext/ffi/php_ffi.h
@@ -19,9 +19,6 @@
#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