Fixed non-thread-safe use of zval  constants