File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -90,20 +90,20 @@ static void php_intl_idn_to_46(INTERNAL_FUNCTION_PARAMETERS,
90
90
ZSTR_VAL (buffer )[len ] = '\0' ;
91
91
ZSTR_LEN (buffer ) = len ;
92
92
93
- if (info .errors == 0 ) {
94
- RETVAL_STR_COPY (buffer );
95
- } else {
96
- RETVAL_FALSE ;
97
- }
98
-
99
93
if (idna_info ) {
100
94
add_assoc_str_ex (idna_info , "result" , sizeof ("result" )- 1 , zend_string_copy (buffer ));
101
95
add_assoc_bool_ex (idna_info , "isTransitionalDifferent" ,
102
96
sizeof ("isTransitionalDifferent" )- 1 , info .isTransitionalDifferent );
103
97
add_assoc_long_ex (idna_info , "errors" , sizeof ("errors" )- 1 , (zend_long )info .errors );
104
98
}
105
99
106
- zend_string_release (buffer );
100
+ if (info .errors == 0 ) {
101
+ RETVAL_STR (buffer );
102
+ } else {
103
+ zend_string_release_ex (buffer , false);
104
+ RETVAL_FALSE ;
105
+ }
106
+
107
107
uidna_close (uts46 );
108
108
}
109
109
You can’t perform that action at this time.
0 commit comments