mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-29 03:45:43 +00:00
fix incrementing on 32-bit
This commit is contained in:
1 parent
2a54b02257
commit
96ac357581
1 file changed
+5
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user