Skip to content

Commit f9cfbb8

Browse files
committed
recode update for phpng
1 parent 1f9ecf4 commit f9cfbb8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/recode/recode.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ PHP_FUNCTION(recode_string)
171171
error_exit:
172172
RETVAL_FALSE;
173173
} else {
174-
RETVAL_STRINGL(r, r_len, 1);
174+
RETVAL_STRINGL(r, r_len);
175175
free(r);
176176
}
177177

@@ -196,8 +196,8 @@ PHP_FUNCTION(recode_file)
196196
return;
197197
}
198198

199-
php_stream_from_zval(instream, &input);
200-
php_stream_from_zval(outstream, &output);
199+
php_stream_from_zval(instream, input);
200+
php_stream_from_zval(outstream, output);
201201

202202
if (FAILURE == php_stream_cast(instream, PHP_STREAM_AS_STDIO, (void**)&in_fp, REPORT_ERRORS)) {
203203
RETURN_FALSE;

0 commit comments

Comments
 (0)