com php-src: Better version checking: ext/phar/phar_object. c
| From: | Xinchen Hui | Date: | Fri, 15 Aug 2014 10:38:31 +0000 |
| Subject: | com php-src: Better version checking: ext/phar/phar_object. c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-80559@lists.php.net to get a copy of this message | ||
Commit: 617b1759c4f0e3160bdfcc346ee668e9dda2fad8
Author: Xinchen Hui <laruence@php.net> Fri, 15 Aug 2014 18:38:31 +0800
Parents: 0583b3bd6a52617b597ea5275aec2f8c545fcbf4
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=617b1759c4f0e3160bdfcc346ee668e9dda2fad8
Log:
Better version checking
Changed paths:
M ext/phar/phar_object.c
Diff:
diff --git a/ext/phar/phar_object.c b/ext/phar/phar_object.c
index 3d403ff..74f06e7 100755
--- a/ext/phar/phar_object.c
+++ b/ext/phar/phar_object.c
@@ -30,7 +30,7 @@ static zend_class_entry *phar_ce_PharException;
static zend_class_entry *phar_ce_entry;
#endif
-#if PHP_MAJOR_VERSION > 5 || ((PHP_MAJOR_VERSION == 5) && (PHP_MINOR_VERSION >= 3))
+#if PHP_VERSION_ID >= 53000
# define PHAR_ARG_INFO
#else
# define PHAR_ARG_INFO static