mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
fix incrementing on 32-bit
This commit is contained in:
parent
ba4a85b012
commit
c97198e181
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue