fix incrementing on 32-bit

This commit is contained in:
Anatol Belski committed 2015-10-04 12:16:54 +02:00
1 parent 2a54b02257
commit 96ac357581
1 file changed
+5 -1
+5 -1
View File
@@ -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