com php-src: Fixed 64-bit build: ext/opcache/zend_accelerator _module.c

From: Date: Thu, 17 Nov 2016 11:05:22 +0000
Subject: com php-src: Fixed 64-bit build: ext/opcache/zend_accelerator _module.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-95849@lists.php.net to get a copy of this message
Commit: c2173c16d038cf99c5eff12ddc76f99d46a35c57 Author: Dmitry Stogov <dmitry@zend.com> Thu, 17 Nov 2016 14:05:22 +0300 Parents: a67637039f742a89201d085e561e906ebf74f1ae Branches: PHP-7.0 PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c2173c16d038cf99c5eff12ddc76f99d46a35c57 Log: Fixed 64-bit build Changed paths: M ext/opcache/zend_accelerator_module.c Diff: diff --git a/ext/opcache/zend_accelerator_module.c b/ext/opcache/zend_accelerator_module.c index 481660c..b6c8e13 100644 --- a/ext/opcache/zend_accelerator_module.c +++ b/ext/opcache/zend_accelerator_module.c @@ -107,7 +107,7 @@ static ZEND_INI_MH(OnUpdateMemoryConsumption) #else char *base = (char *) ts_resource(*((int *) mh_arg2)); #endif - zend_long overflow; + zend_long megabyte, overflow; double dummy; /* keep the compiler happy */ @@ -132,7 +132,8 @@ static ZEND_INI_MH(OnUpdateMemoryConsumption) ini_entry->value = zend_string_init(new_new_value, 1, 1); } - ZEND_SIGNED_MULTIPLY_LONG(memsize, 1024 * 1024, *p, dummy, overflow); + megabyte = 1024 * 1024; + ZEND_SIGNED_MULTIPLY_LONG(memsize, megabyte, *p, dummy, overflow); if (UNEXPECTED(overflow)) { *p = ZEND_ULONG_MAX; }

« previous php.cvs (#95849) next »