Skip to content

Commit 3568c1b

Browse files
committed
fix typo
1 parent 6628aaa commit 3568c1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ext/filter/filter.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ static unsigned int php_sapi_filter(int arg, const char *var, char **val, size_t
324324
*/
325325
if (is_raw)
326326
{
327-
if (array_ptr || orig_array_ptr)
327+
if (array_ptr || orig_array_ptr || retval)
328328
{
329329
if (val_len)
330330
{
@@ -333,11 +333,13 @@ static unsigned int php_sapi_filter(int arg, const char *var, char **val, size_t
333333
{
334334
ZVAL_EMPTY_STRING(&raw_var);
335335
}
336+
336337
if (array_ptr)
337338
{
338339
Z_TRY_ADDREF_P(&raw_var);
339340
php_register_variable_ex(var, &raw_var, array_ptr);
340341
}
342+
341343
if (orig_array_ptr)
342344
{
343345
Z_TRY_ADDREF_P(&raw_var);

0 commit comments

Comments
 (0)