Skip to content

Commit 4aba066

Browse files
committed
Fix another PHP 7.3 segfault
1 parent c3c5b2c commit 4aba066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

oauth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@ static long oauth_fetch(php_so_object *soo, const char *url, const char *method,
14511451
}
14521452

14531453
/* additional http headers can be passed */
1454-
if (!request_headers) {
1454+
if (!request_headers || !zend_hash_num_elements(Z_ARRVAL_P(request_headers))) {
14551455
ALLOC_HASHTABLE(rheaders);
14561456
zend_hash_init(rheaders, 0, NULL, ZVAL_PTR_DTOR, 0);
14571457
need_to_free_rheaders = 1;

0 commit comments

Comments
 (0)