Fixed segfault
It's a zend_array not Hashtable (fixed segfault)
Fixed resources apply_dtor
Fixed memleak (3 tests fails now)