- initialize opts zval ptr to NULL as it's an optional parameter