From: Anatol Belski Date: Sun, 4 Oct 2015 10:16:54 +0000 (+0200) Subject: fix incrementing on 32-bit X-Git-Tag: php-7.1.0alpha1~1038^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96ac35758115caff660b4a7086daa34adee826be;p=php fix incrementing on 32-bit --- diff --git a/ext/opcache/ZendAccelerator.c b/ext/opcache/ZendAccelerator.c index 3fa015e162..862a85389f 100644 --- a/ext/opcache/ZendAccelerator.c +++ b/ext/opcache/ZendAccelerator.c @@ -1804,7 +1804,11 @@ zend_op_array *persistent_compile_file(zend_file_handle *file_handle, int type) ZCSG(hits)++; /* TBFixed: may lose one hit */ persistent_script->dynamic_members.hits++; /* see above */ #else - INCREMENT(hits); +#ifdef _M_X64 + InterlockedIncrement64(&ZCSG(hits)); +#else + InterlockedIncrement(&ZCSG(hits)); +#endif InterlockedIncrement64(&persistent_script->dynamic_members.hits); #endif