lisachenko / z-engine

:zap: PHP Engine Direct API
MIT License
448 stars 22 forks source link

[Bug] Incorrect logic of returning decremented reference count #11

Closed lisachenko closed 4 years ago

lisachenko commented 4 years ago

decrementReferenceCount method uses post-decrement, thus returns an invalid value of reference counter, this prevents GC of string.