com php-src: Fixed version checking: ext/mysqli/mysqli.c
| From: | Xinchen Hui | Date: | Fri, 15 Aug 2014 10:28:41 +0000 |
| Subject: | com php-src: Fixed version checking: ext/mysqli/mysqli.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-80542@lists.php.net to get a copy of this message | ||
Commit: 0583b3bd6a52617b597ea5275aec2f8c545fcbf4
Author: Xinchen Hui <laruence@php.net> Fri, 15 Aug 2014 18:28:41 +0800
Parents: 7ace092abfec31749da230405a7298d9b5789f43
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=0583b3bd6a52617b597ea5275aec2f8c545fcbf4
Log:
Fixed version checking
Changed paths:
M ext/mysqli/mysqli.c
Diff:
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c
index 9374737..fb93095 100644
--- a/ext/mysqli/mysqli.c
+++ b/ext/mysqli/mysqli.c
@@ -995,7 +995,7 @@ PHP_MINFO_FUNCTION(mysqli)
/* Dependancies */
static const zend_module_dep mysqli_deps[] = {
-#if defined(HAVE_SPL) && ((PHP_MAJOR_VERSION > 5) || (PHP_MAJOR_VERSION == 5 &&
PHP_MINOR_VERSION >= 1))
+#if defined(HAVE_SPL) && (PHP_VERSION_ID >= 50100)
ZEND_MOD_REQUIRED("spl")
#endif
#if defined(MYSQLI_USE_MYSQLND)