File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -491,7 +491,7 @@ int make_http_soap_request(zval *this_ptr,
491
491
(((use_ssl && orig -> scheme != NULL && zend_string_equals_literal (orig -> scheme , "https" )) ||
492
492
(!use_ssl && orig -> scheme == NULL ) ||
493
493
(!use_ssl && !zend_string_equals_literal (orig -> scheme , "https" ))) &&
494
- strcmp ( ZSTR_VAL ( orig -> host ), ZSTR_VAL ( phpurl -> host )) == 0 &&
494
+ zend_string_equals ( orig -> host , phpurl -> host ) &&
495
495
orig -> port == phpurl -> port ))) {
496
496
} else {
497
497
php_stream_close (stream );
Original file line number Diff line number Diff line change @@ -1275,9 +1275,9 @@ PHP_METHOD(SoapServer, handle)
1275
1275
(encoding = zend_hash_str_find (Z_ARRVAL_P (server_vars ), "HTTP_CONTENT_ENCODING" , sizeof ("HTTP_CONTENT_ENCODING" )- 1 )) != NULL &&
1276
1276
Z_TYPE_P (encoding ) == IS_STRING ) {
1277
1277
1278
- if (strcmp ( Z_STRVAL_P (encoding ),"gzip" ) == 0
1279
- || strcmp ( Z_STRVAL_P (encoding ),"x-gzip" ) == 0
1280
- || strcmp ( Z_STRVAL_P (encoding ),"deflate" ) == 0
1278
+ if (zend_string_equals_literal ( Z_STR_P (encoding ), "gzip" )
1279
+ || zend_string_equals_literal ( Z_STR_P (encoding ), "x-gzip" )
1280
+ || zend_string_equals_literal ( Z_STR_P (encoding ), "deflate" )
1281
1281
) {
1282
1282
zval filter_params ;
1283
1283
You can’t perform that action at this time.
0 commit comments