We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af87ade commit 9ac5b04Copy full SHA for 9ac5b04
ext/intl/timezone/timezone_methods.cpp
@@ -646,7 +646,7 @@ U_CFUNC PHP_FUNCTION(intltz_get_windows_id)
646
error = U_ZERO_ERROR;
647
winID = intl_convert_utf16_to_utf8(uWinID.getBuffer(), uWinID.length(), &error);
648
INTL_CHECK_STATUS(error, "could not convert time zone id to UTF-8");
649
- RETURN_STR(winID);
+ RETURN_NEW_STR(winID);
650
}
651
/* }}} */
652
@@ -684,6 +684,6 @@ U_CFUNC PHP_FUNCTION(intltz_get_id_for_windows_id)
684
685
id = intl_convert_utf16_to_utf8(uID.getBuffer(), uID.length(), &error);
686
687
- RETURN_STR(id);
+ RETURN_NEW_STR(id);
688
689
0 commit comments