flaupretre / pecl-pcs

PHP Code Service
Other
25 stars 4 forks source link

Don't modify the internal array pointer #16

Closed cmb69 closed 4 years ago

cmb69 commented 4 years ago

Since the internal array pointer is shared for all code using a hash table, this can easily lead to issues. In this case we're failing an assertion in zend_hash_internal_pointer_reset_ex(), because the ref count is 2, while running tests/autoload_001.phpt.

We use our own position pointer instead.