Skip to content

Commit 4245c93

Browse files
rdlowreyTyrael
authored andcommitted
Really fix zts this time
1 parent 4bf74b5 commit 4245c93

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/openssl/xp_ssl.c

+4-4
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ static zend_bool php_x509_fingerprint_match(X509 *peer, zval *val TSRMLS_DC)
307307
ulong key_index;
308308

309309
if (!zend_hash_num_elements(Z_ARRVAL_P(val))) {
310-
php_error_docref(NULL, E_WARNING, "Invalid peer_fingerprint array; [algo => fingerprint] form required" TSRMLS_CC);
310+
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid peer_fingerprint array; [algo => fingerprint] form required");
311311
return 0;
312312
}
313313

@@ -318,7 +318,7 @@ static zend_bool php_x509_fingerprint_match(X509 *peer, zval *val TSRMLS_DC)
318318
int key_type = zend_hash_get_current_key_ex(Z_ARRVAL_P(val), &key, &key_len, &key_index, 0, &pos);
319319

320320
if (!(key_type == HASH_KEY_IS_STRING && Z_TYPE_PP(current) == IS_STRING)) {
321-
php_error_docref(NULL, E_WARNING, "Invalid peer_fingerprint array; [algo => fingerprint] form required" TSRMLS_CC);
321+
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid peer_fingerprint array; [algo => fingerprint] form required");
322322
return 0;
323323
}
324324
if (php_x509_fingerprint_cmp(peer, key, Z_STRVAL_PP(current) TSRMLS_CC) != 0) {
@@ -329,8 +329,8 @@ static zend_bool php_x509_fingerprint_match(X509 *peer, zval *val TSRMLS_DC)
329329
return 1;
330330

331331
} else {
332-
php_error_docref(NULL, E_WARNING,
333-
"Invalid peer_fingerprint value; fingerprint string or array of the form [algo => fingerprint] required" TSRMLS_CC);
332+
php_error_docref(NULL TSRMLS_CC, E_WARNING,
333+
"Invalid peer_fingerprint value; fingerprint string or array of the form [algo => fingerprint] required");
334334
}
335335

336336
return 0;

0 commit comments

Comments
 (0)