summaryrefslogtreecommitdiff
path: root/Zend/Zend.m4
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-10-05 10:46:46 +0200
committerNikita Popov <nikita.ppv@gmail.com>2020-10-05 10:46:46 +0200
commit9ad5381a2f94073f2d84bdda9bc8892d18587fdd (patch)
tree083657dc3332e7c14ccf949d964037fd1cc3d532 /Zend/Zend.m4
parentc00816a38fe762777ca0b7dd3035406b51a921b1 (diff)
parentaa405b7da270595d349d0596ad31305a41d4b1c0 (diff)
downloadphp-git-9ad5381a2f94073f2d84bdda9bc8892d18587fdd.tar.gz
Merge branch 'PHP-7.3' into PHP-7.4
* PHP-7.3: Fix -Wimplicit-function-declaration in configure
Diffstat (limited to 'Zend/Zend.m4')
-rw-r--r--Zend/Zend.m48
1 files changed, 4 insertions, 4 deletions
diff --git a/Zend/Zend.m4 b/Zend/Zend.m4
index d6919ae1e1..6c33ca4e47 100644
--- a/Zend/Zend.m4
+++ b/Zend/Zend.m4
@@ -164,16 +164,16 @@ int main()
double d = (double) LONG_MIN * LONG_MIN + 2e9;
if ((long) d == 2e9 && (long) -d == -2e9) {
- exit(0);
+ return 0;
}
} else if (sizeof(long) == 8) {
double correct = 18e18 - ((double) LONG_MIN * -2); /* Subtract ULONG_MAX + 1 */
if ((long) 18e18 == correct) { /* On 64-bit, only check between LONG_MAX and ULONG_MAX */
- exit(0);
+ return 0;
}
}
- exit(1);
+ return 1;
}
]])], [
AC_DEFINE([ZEND_DVAL_TO_LVAL_CAST_OK], 1, [Define if double cast to long preserves least significant bits])
@@ -284,7 +284,7 @@ int main()
fprintf(fp, "%d %d\n", ZEND_MM_ALIGNMENT, zeros);
fclose(fp);
- exit(0);
+ return 0;
}
]])], [
LIBZEND_MM_ALIGN=`cat conftest.zend | cut -d ' ' -f 1`