mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix reference handling of IntlTimeZone::getCanonicalID/intltz_get_canonical_id
Closes GH-18469.
This commit is contained in:
parent
e3105f5f1e
commit
a090e59b37
2 changed files with 20 additions and 3 deletions
|
@ -291,9 +291,7 @@ U_CFUNC PHP_FUNCTION(intltz_get_canonical_id)
|
|||
RETVAL_NEW_STR(u8str);
|
||||
|
||||
if (is_systemid) { /* by-ref argument passed */
|
||||
ZVAL_DEREF(is_systemid);
|
||||
zval_ptr_dtor(is_systemid);
|
||||
ZVAL_BOOL(is_systemid, isSystemID);
|
||||
ZEND_TRY_ASSIGN_REF_BOOL(is_systemid, isSystemID);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue