Skip to content

Commit 9ef0c39

Browse files
committed
Removed erroneous condition
This condition is always false. Furthermore headers_list() is documented to always return an array.
1 parent 928fdbe commit 9ef0c39

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

ext/standard/head.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,6 @@ PHP_FUNCTION(headers_list)
277277
return;
278278
}
279279

280-
if (!&SG(sapi_headers).headers) {
281-
RETURN_FALSE;
282-
}
283280
array_init(return_value);
284281
zend_llist_apply_with_argument(&SG(sapi_headers).headers, php_head_apply_header_list_to_hash, return_value TSRMLS_CC);
285282
}

0 commit comments

Comments
 (0)