Fixed reference handling in intltz_get_canonical_id

This commit is contained in:
Xinchen Hui 2014-06-30 11:03:03 +08:00
parent a0b500df99
commit 9c96d966bb

View file

@ -325,6 +325,7 @@ U_CFUNC PHP_FUNCTION(intltz_get_canonical_id)
efree(str); efree(str);
if (is_systemid) { /* by-ref argument passed */ if (is_systemid) { /* by-ref argument passed */
ZVAL_DEREF(is_systemid);
zval_dtor(is_systemid); zval_dtor(is_systemid);
ZVAL_BOOL(is_systemid, isSystemID); ZVAL_BOOL(is_systemid, isSystemID);
} }