zval_ptr_dtor() expects a zval**, corrected it