@@ -307,7 +307,7 @@ static zend_bool php_x509_fingerprint_match(X509 *peer, zval *val TSRMLS_DC)
307
307
ulong key_index ;
308
308
309
309
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" );
311
311
return 0 ;
312
312
}
313
313
@@ -318,7 +318,7 @@ static zend_bool php_x509_fingerprint_match(X509 *peer, zval *val TSRMLS_DC)
318
318
int key_type = zend_hash_get_current_key_ex (Z_ARRVAL_P (val ), & key , & key_len , & key_index , 0 , & pos );
319
319
320
320
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" );
322
322
return 0 ;
323
323
}
324
324
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)
329
329
return 1 ;
330
330
331
331
} 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" );
334
334
}
335
335
336
336
return 0 ;
0 commit comments